X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=blobdiff_plain;f=roles%2Ftools%2Ffiles%2Fgio_unwrapper.sh;fp=roles%2Ftools%2Ffiles%2Fgio_unwrapper.sh;h=59886d6e58454b824e05c012f00580c4368781ae;hp=5629b28ef3db45195508d5e821b1d6cc1d8f78b8;hb=386f9271125f93651cb20420de696efab8798fa9;hpb=d512a906fcdbca34791beab9946f9f505fbe60a1 diff --git a/roles/tools/files/gio_unwrapper.sh b/roles/tools/files/gio_unwrapper.sh index 5629b28..59886d6 100755 --- a/roles/tools/files/gio_unwrapper.sh +++ b/roles/tools/files/gio_unwrapper.sh @@ -13,7 +13,7 @@ # environments) if [ -n "$GIO_LAUNCHED_DESKTOP_FILE" ]; then - while [ -n "$1" -a "${1:0:1}" != "/" -a ! -f "$1" ]; do + while [ -n "$1" -a "${1:0:1}" != "/" -a "${1:0:7}" != "file://" -a ! -f "$1" ]; do shift done xdg-open "$1"