diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-19 09:07:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-19 09:07:27 +0100 |
commit | 8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1 (patch) | |
tree | 182aa369c09d20b9648a37f1a01b29effd2bf47f | |
parent | dfd05afe7215e75ba2d34cc4cbc73ed8e10452bf (diff) | |
download | Ansible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.tar.gz Ansible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.tar.zst Ansible-8bd99501f54d4e711ba579cc3b5e7e46a9ec29e1.zip |
Fix GIO unwrapper when called from lxpanelctl
-rwxr-xr-x | roles/tools/files/gio_unwrapper.sh | 12 |
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 | ||
15 | while [ -n "$1" -a "${1:0:1}" != "/" -a ! -f "$1" ]; do | 15 | if [ -n "$GIO_LAUNCHED_DESKTOP_FILE" ]; then |
16 | shift | 16 | while [ -n "$1" -a "${1:0:1}" != "/" -a ! -f "$1" ]; do |
17 | done | 17 | shift |
18 | xdg-open "$1" | 18 | done |
19 | xdg-open "$1" | ||
20 | else | ||
21 | exec "$@" | ||
22 | fi | ||