diff options
-rwxr-xr-x | shell/source/unix/misc/gnome-open-url.sh | 2 | ||||
-rwxr-xr-x | shell/source/unix/misc/kde-open-url.sh | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/shell/source/unix/misc/gnome-open-url.sh b/shell/source/unix/misc/gnome-open-url.sh index ab730d169a49..e73dfdeac239 100755 --- a/shell/source/unix/misc/gnome-open-url.sh +++ b/shell/source/unix/misc/gnome-open-url.sh @@ -1,6 +1,6 @@ #!/bin/sh # use xdg-open or gnome-open if available -xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || "$0.bin" $1 +xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || sensible-browser "$1" || "$0.bin" $1 exit 0 diff --git a/shell/source/unix/misc/kde-open-url.sh b/shell/source/unix/misc/kde-open-url.sh index fa05bdecbda4..9b0285a0c629 100755 --- a/shell/source/unix/misc/kde-open-url.sh +++ b/shell/source/unix/misc/kde-open-url.sh @@ -2,9 +2,13 @@ # special handling for mailto: uris if echo $1 | grep '^mailto:' > /dev/null; then - kmailservice "$1" & + if which kde-open; then + kde-open "$1" & + else + mailservice "$1" & + fi else - kfmclient openURL "$1" & + sensible-browser "$1" & fi exit 0 |