summarylogtreecommitdiffstats
path: root/mswinurl-handler.sh
blob: 79ca72e451f6dbab38b3db1f925c528c05c57c67 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

url=$(grep -E '^URL=' "$1" | cut -d= -f2-)

if [ -n "$url" ]; then
    xdg-open "$url"
else
    notify-send "Error" "No URL found in .url file"
    exit 1
fi