summarylogtreecommitdiffstats
path: root/xdg-open.sh
blob: d6c6d882ba086e22507d9a5969a770e48da15455 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
URI_TO_OPEN="$1"

if ! [ "${URI_TO_OPEN:0:8}" == "jsbridge" ]; then
    if [ "${URI_TO_OPEN:0:4}" == "http" ]; then
        /snapd-xdg-open "$URI_TO_OPEN"
    else
        /flatpak-xdg-open "$URI_TO_OPEN"
    fi
fi