From Debian urlview-0.9-2.1 One more mode if launching brwosers. November 2001 --- urlview-0.9/url_handler.sh.mdk Tue Jul 4 14:14:30 2000 +++ urlview-0.9/url_handler.sh Thu Nov 29 21:27:44 2001 @@ -23,6 +23,7 @@ # # Any entry in the lists of programs that urlview handler will try out will # be made of /path/to/program + ':' + TAG where TAG is one of +# PW: XWindows program intended to live on after urlview's caller exits. # XW: XWindows program # XT: Launch with an xterm if possible or as VT if not # VT: Launch in the same terminal @@ -52,6 +53,8 @@ prog=${ele%%:*} if [ -x $prog ]; then case $tag in + PW) [ -n "$DISPLAY" ] && echo "P:$prog" && return 0 + ;; XW) [ -n "$DISPLAY" ] && echo "X:$prog" && return 0 ;; @@ -94,18 +97,20 @@ prg=`getprg $gopher_prgs` ;; *) - echo "Unknown URL type. Please report URL and viewer to:" - echo "joey@debian.org." - echo -n "Press enter to continue."; read x + echo "Unknown URL type. Please report URL and viewer to" + echo "urlview@packages.debian.org." + echo -n "Press enter to continue.."; read x exit ;; esac if [ -n "$prg" ]; then - if [ "${prg%:*}" = "X" ]; then - ${prg#*:} "$url" 2>/dev/null & + if [ "${prg%:*}" = "P" ]; then + nohup ${prg#*:} $url 2>/dev/null 1>/dev/null & + elif [ "${prg%:*}" = "X" ]; then + ${prg#*:} $url 2>/dev/null & else $prg "$url" fi fi