summaryrefslogtreecommitdiffstats
path: root/shell/source/unix/misc/kde-open-url.sh
blob: 9b0285a0c629f23ab23b707db1306252183ac7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# special handling for mailto: uris
if echo $1 | grep '^mailto:' > /dev/null; then
  if which kde-open; then
    kde-open "$1" &
  else
    mailservice "$1" &
  fi
else
  sensible-browser "$1" &
fi

exit 0