You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-visualization/opendx/files/opendx-4.4.4-xdg.patch

27 lines
712 B

diff -up bin/url_handler.sh.orig bin/url_handler.sh
--- a/bin/url_handler.sh
+++ b/bin/url_handler.sh
@@ -27,21 +27,7 @@ case $method in
mailto) mutt `echo "$url" | sed 's;^[^:]*:\(.*\);\1;'`
;;
- *) use_xbrowser=n
- case "$DISPLAY" in
- :0) use_xbrowser=y
- ;;
- :0.*) use_xbrowser=y
- ;;
- unix:0.*) use_xbrowser=y
- ;;
- esac
- if [ $use_xbrowser = n ]; then
- lynx "$url"
- else
- netscape -remote "openURL($url)" 2> /dev/null || \
- (netscape "$url" &)
- fi
+ *) xdg-open "$url"
;;
esac