summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-19 09:07:27 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-19 09:07:27 +0100
commit8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1 (patch)
tree182aa369c09d20b9648a37f1a01b29effd2bf47f
parentdfd05afe7215e75ba2d34cc4cbc73ed8e10452bf (diff)
downloadAnsible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.tar.gz
Ansible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.tar.zst
Ansible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.zip
Fix GIO unwrapper when called from lxpanelctl
-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