slackware-current/source/x/xdg-utils/xdg-open.no.relative.paths.diff
Patrick J Volkerding 22643bf376 Sat Jan 26 04:15:08 UTC 2019
a/mkinitrd-1.4.11-x86_64-11.txz:  Rebuilt.
  setup.01.mkinitrd: revert to the previous command line for
  mkinitrd_command_generator.sh (the new one fails when called from the
  installer).
2019-01-26 08:59:46 +01:00

15 lines
538 B
Diff

--- ./scripts/xdg-open.in.orig 2018-05-10 10:02:31.000000000 -0500
+++ ./scripts/xdg-open.in 2019-01-25 13:01:17.492733618 -0600
@@ -453,12 +453,6 @@
# pcmanfm only knows how to handle file:// urls and filepaths, it seems.
if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then
local file="$(file_url_to_path "$1")"
-
- # handle relative paths
- if ! echo "$file" | grep -q ^/; then
- file="$(pwd)/$file"
- fi
-
pcmanfm "$file"
else
open_generic "$1"