From e66d285cc9aa22bc2ca84a35bd0319977f70526f Mon Sep 17 00:00:00 2001 From: David Costa Date: Tue, 24 Jun 2014 20:01:07 +0200 Subject: [PATCH] xdg-open: fixes #63153 keeping the path as URL --- scripts/xdg-open.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index 637a762..45e8112 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -306,10 +306,10 @@ open_lxde() if (echo "$1" | grep -q '^file://' || ! echo "$1" | egrep -q '^[[:alpha:]+\.\-]+:') then - local file="$(echo "$1" | sed 's%^file://%%')" + local file="$1" # handle relative paths - if ! echo "$file" | grep -q '^/'; then + if ! echo "$file" | egrep -q '^(file://)?/'; then file="$(pwd)/$file" fi -- 2.0.0