diff options
Diffstat (limited to 'xdg-open.sh')
-rwxr-xr-x | xdg-open.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xdg-open.sh b/xdg-open.sh new file mode 100755 index 000000000000..76bdf56f14c2 --- /dev/null +++ b/xdg-open.sh @@ -0,0 +1,8 @@ +#!/bin/bash +URI_TO_OPEN="$1" + +if [ "${URI_TO_OPEN:0:4}" == "http" ]; then + /snapd-xdg-open "$URI_TO_OPEN" +else + /real-xdg-open "$URI_TO_OPEN" +fi |