opendx-4.4.4-xdg.patch 712 B

123456789101112131415161718192021222324252627
  1. diff -up bin/url_handler.sh.orig bin/url_handler.sh
  2. --- a/bin/url_handler.sh
  3. +++ b/bin/url_handler.sh
  4. @@ -27,21 +27,7 @@ case $method in
  5. mailto) mutt `echo "$url" | sed 's;^[^:]*:\(.*\);\1;'`
  6. ;;
  7. - *) use_xbrowser=n
  8. - case "$DISPLAY" in
  9. - :0) use_xbrowser=y
  10. - ;;
  11. - :0.*) use_xbrowser=y
  12. - ;;
  13. - unix:0.*) use_xbrowser=y
  14. - ;;
  15. - esac
  16. - if [ $use_xbrowser = n ]; then
  17. - lynx "$url"
  18. - else
  19. - netscape -remote "openURL($url)" 2> /dev/null || \
  20. - (netscape "$url" &)
  21. - fi
  22. + *) xdg-open "$url"
  23. ;;
  24. esac