From 837f618c1c2a3a4100f1f19d00815693f2247e1f Mon Sep 17 00:00:00 2001 From: David Costa Date: Tue, 24 Jun 2014 23:46:18 +0200 Subject: [PATCH 2/2] xdg-open: insert full path in correct position with relative file URLs --- scripts/xdg-open.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in index 45e8112..5116c4d 100644 --- a/scripts/xdg-open.in +++ b/scripts/xdg-open.in @@ -310,9 +310,10 @@ open_lxde() # handle relative paths if ! echo "$file" | egrep -q '^(file://)?/'; then - file="$(pwd)/$file" + file=$(echo "$file" | sed "s#^\(file://\)\?#\0$(pwd)/#") fi + pcmanfm "$file" else -- 2.0.0