patch-url_handler_sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-url_handler_sh,v 1.2 2014/07/16 14:35:37 ajacoutot Exp $
  2. --- url_handler.sh.orig Tue Jul 4 12:14:30 2000
  3. +++ url_handler.sh Wed Jul 16 16:25:22 2014
  4. @@ -1,4 +1,4 @@
  5. -#! /bin/bash
  6. +#!/bin/sh
  7. # Copyright (c) 1998 Martin Schulze <joey@debian.org>
  8. # Slightly modified by Luis Francisco Gonzalez <luisgh@debian.org>
  9. @@ -28,11 +28,11 @@
  10. # VT: Launch in the same terminal
  11. # The lists of programs to be executed are
  12. -https_prgs="/usr/X11R6/bin/netscape:XW /usr/bin/lynx:XT"
  13. -http_prgs="/usr/bin/lynx:XT /usr/X11R6/bin/netscape:XW"
  14. -mailto_prgs="/usr/bin/mutt:VT /usr/bin/elm:VT /usr/bin/pine:VT /usr/bin/mail:VT"
  15. -gopher_prgs="/usr/bin/lynx:XT /usr/bin/gopher:XT"
  16. -ftp_prgs="/usr/bin/lynx:XT /usr/bin/ncftp:XT"
  17. +https_prgs="${LOCALBASE}/bin/xdg-open:XT ${LOCALBASE}/bin/xdg-open:XW"
  18. +http_prgs="${LOCALBASE}/bin/xdg-open:XT ${LOCALBASE}/bin/xdg-open:XW"
  19. +mailto_prgs="${LOCALBASE}/bin/xdg-email:VT /usr/bin/mail:VT ${LOCALBASE}/bin/xdg-email:XW"
  20. +gopher_prgs="/usr/local/bin/gopher:XT"
  21. +ftp_prgs="/usr/bin/ftp:VT"
  22. # Program used as an xterm (if it doesn't support -T you'll need to change
  23. # the command line in getprg)
  24. @@ -42,7 +42,7 @@ XTERM=/usr/X11R6/bin/xterm
  25. ###########################################################################
  26. # Change bellow this at your own risk
  27. ###########################################################################
  28. -function getprg()
  29. +function getprg
  30. {
  31. local ele tag prog