diff options
author | David Costa <david.costa@ieee.org> | 2014-06-24 20:01:07 +0200 |
---|---|---|
committer | Rex Dieter <rdieter@math.unl.edu> | 2014-09-19 13:03:09 -0500 |
commit | d6e0924bdf917d118dba993534cc3f335ab0a160 (patch) | |
tree | a8400c18b377e37a059d7b6ab2911912f54e3c51 | |
parent | 0c465c119130c2739e3086b7d3573313cb19233a (diff) |
xdg-open: fixes #63153 keeping the path as URL
-rw-r--r-- | scripts/xdg-open.in | 4 |
1 files 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 |