summarylogtreecommitdiffstats
path: root/xdg-open.sh
blob: 76bdf56f14c22ca7c5a2b11aa1c4ead49d6e9bb5 (plain)
1
2
3
4
5
6
7
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