From d6e0924bdf917d118dba993534cc3f335ab0a160 Mon Sep 17 00:00:00 2001 From: David Costa Date: Tue, 24 Jun 2014 20:01:07 +0200 Subject: [PATCH 21/22] 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 244f214..cc2fc9c 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.1.0