summaryrefslogtreecommitdiff
path: root/roles/tools/files
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tools/files')
-rwxr-xr-xroles/tools/files/gio_unwrapper.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/roles/tools/files/gio_unwrapper.sh b/roles/tools/files/gio_unwrapper.sh
index bfddc49..5629b28 100755
--- a/roles/tools/files/gio_unwrapper.sh
+++ b/roles/tools/files/gio_unwrapper.sh
@@ -12,7 +12,11 @@
12# might reuse gio in turn to open the file, for instance in gnome 12# might reuse gio in turn to open the file, for instance in gnome
13# environments) 13# environments)
14 14
15while [ -n "$1" -a "${1:0:1}" != "/" -a ! -f "$1" ]; do 15if [ -n "$GIO_LAUNCHED_DESKTOP_FILE" ]; then
16 shift 16 while [ -n "$1" -a "${1:0:1}" != "/" -a ! -f "$1" ]; do
17done 17 shift
18xdg-open "$1" 18 done
19 xdg-open "$1"
20else
21 exec "$@"
22fi