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