|
|
06e0cf |
diff -up urlview/url_handler.sh.default urlview/url_handler.sh
|
|
|
06e0cf |
--- urlview/url_handler.sh.default 2013-10-23 05:08:01.000000000 +0200
|
|
|
06e0cf |
+++ urlview/url_handler.sh 2015-04-22 11:04:42.247546697 +0200
|
|
|
06e0cf |
@@ -28,15 +28,15 @@
|
|
|
06e0cf |
# VT: Launch in the same terminal
|
|
|
06e0cf |
|
|
|
06e0cf |
# The lists of programs to be executed are
|
|
|
06e0cf |
-https_prgs="/usr/X11R6/bin/netscape:XW /usr/bin/lynx:XT"
|
|
|
06e0cf |
-http_prgs="/usr/bin/lynx:XT /usr/X11R6/bin/netscape:XW"
|
|
|
06e0cf |
+https_prgs="/usr/bin/htmlview:XW /usr/bin/firefox:XW /usr/bin/seamonkey:XW /usr/bin/konqueror:XW /usr/bin/epiphany:XW /usr/bin/links:XT /usr/bin/lynx:XT"
|
|
|
06e0cf |
+http_prgs="/usr/bin/htmlview:XW /usr/bin/firefox:XW /usr/bin/seamonkey:XW /usr/bin/konqueror:XW /usr/bin/epiphany:XW /usr/bin/links:XT /usr/bin/lynx:XT"
|
|
|
06e0cf |
mailto_prgs="/usr/bin/mutt:VT /usr/bin/elm:VT /usr/bin/pine:VT /usr/bin/mail:VT"
|
|
|
06e0cf |
-gopher_prgs="/usr/bin/lynx:XT /usr/bin/gopher:XT"
|
|
|
06e0cf |
-ftp_prgs="/usr/bin/lynx:XT /usr/bin/ncftp:XT"
|
|
|
06e0cf |
+gopher_prgs="/usr/bin/lynx:XT"
|
|
|
06e0cf |
+ftp_prgs="/usr/bin/ncftp:XT /usr/bin/wget:XT /usr/bin/lynx:XT"
|
|
|
06e0cf |
|
|
|
06e0cf |
# Program used as an xterm (if it doesn't support -T you'll need to change
|
|
|
06e0cf |
# the command line in getprg)
|
|
|
06e0cf |
-XTERM=/usr/X11R6/bin/xterm
|
|
|
06e0cf |
+XTERM=/usr/bin/xterm
|
|
|
06e0cf |
|
|
|
06e0cf |
|
|
|
06e0cf |
###########################################################################
|
|
|
06e0cf |
@@ -100,9 +100,7 @@ gopher)
|
|
|
06e0cf |
prg=`getprg $gopher_prgs`
|
|
|
06e0cf |
;;
|
|
|
06e0cf |
*)
|
|
|
06e0cf |
- echo "Unknown URL type. Please report URL and viewer to:"
|
|
|
06e0cf |
- echo "joey@debian.org."
|
|
|
06e0cf |
- echo -n "Press enter to continue."; read x
|
|
|
06e0cf |
+ echo -n "Unknown URL type. Press enter to continue."; read x
|
|
|
06e0cf |
exit
|
|
|
06e0cf |
;;
|
|
|
06e0cf |
esac
|
|
|
06e0cf |
diff -up urlview/urlview.c.default urlview/urlview.c
|
|
|
06e0cf |
--- urlview/urlview.c.default 2013-10-23 05:08:01.000000000 +0200
|
|
|
06e0cf |
+++ urlview/urlview.c 2015-04-22 11:04:42.248546700 +0200
|
|
|
06e0cf |
@@ -50,8 +50,8 @@
|
|
|
06e0cf |
#include "quote.h"
|
|
|
06e0cf |
|
|
|
06e0cf |
#define DEFAULT_REGEXP "(((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]"
|
|
|
06e0cf |
-#define DEFAULT_COMMAND "/etc/urlview/url_handler.sh %s"
|
|
|
06e0cf |
-#define SYSTEM_INITFILE "/etc/urlview/system.urlview"
|
|
|
06e0cf |
+#define DEFAULT_COMMAND "/usr/bin/url_handler.sh %s"
|
|
|
06e0cf |
+#define SYSTEM_INITFILE "/etc/urlview.conf"
|
|
|
06e0cf |
|
|
|
06e0cf |
#define OFFSET 2
|
|
|
06e0cf |
#define PAGELEN (LINES - 1 - OFFSET)
|
|
|
06e0cf |
diff -up urlview/urlview.conf.suse.default urlview/urlview.conf.suse
|
|
|
06e0cf |
--- urlview/urlview.conf.suse.default 2013-10-23 05:08:01.000000000 +0200
|
|
|
06e0cf |
+++ urlview/urlview.conf.suse 2015-04-22 11:04:42.248546700 +0200
|
|
|
06e0cf |
@@ -4,6 +4,6 @@
|
|
|
06e0cf |
#
|
|
|
06e0cf |
# The defaults are shown here:
|
|
|
06e0cf |
#
|
|
|
06e0cf |
-# REGEXP (((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>"]+|(www|web|w3)\.[-a-z0-9.]+)[^' \t.,;<>"\):]
|
|
|
06e0cf |
-# COMMAND url_handler.sh '%s'
|
|
|
06e0cf |
+# REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ <>\"\t]*|(www|ftp)[0-9]?\\.[-a-z0-9.]+)[^ .,;\t\n\r<\">\\):]?[^, <>\"\t]*[^ .,;\t\n\r<\">\\):]
|
|
|
06e0cf |
+# COMMAND /usr/bin/url_handler.sh %s
|
|
|
06e0cf |
#
|
|
|
06e0cf |
diff -up urlview/urlview.man.default urlview/urlview.man
|
|
|
06e0cf |
--- urlview/urlview.man.default 2013-10-23 05:08:01.000000000 +0200
|
|
|
06e0cf |
+++ urlview/urlview.man 2015-04-22 11:05:51.930740825 +0200
|
|
|
06e0cf |
@@ -35,7 +35,7 @@ attempts to read
|
|
|
06e0cf |
upon startup. If this file
|
|
|
06e0cf |
doesn't exist, it will try to read a system wide file
|
|
|
06e0cf |
in
|
|
|
06e0cf |
-.IR /etc/urlview/system.urlview .
|
|
|
06e0cf |
+.IR /etc/urlview.conf .
|
|
|
06e0cf |
There are two configuration commands (order does not matter):
|
|
|
06e0cf |
.TP
|
|
|
06e0cf |
REGEXP \fIregexp\fP
|
|
|
06e0cf |
@@ -63,7 +63,7 @@ with the URL that was requested, otherwi
|
|
|
06e0cf |
the COMMAND string. The default COMMAND is:
|
|
|
06e0cf |
.br
|
|
|
06e0cf |
.sp
|
|
|
06e0cf |
-/etc/urlview/url_handler.sh
|
|
|
06e0cf |
+/usr/bin/url_handler.sh
|
|
|
06e0cf |
.PP
|
|
|
06e0cf |
.B Note:
|
|
|
06e0cf |
You should
|
|
|
06e0cf |
@@ -84,7 +84,7 @@ QUITONLAUNCH
|
|
|
06e0cf |
Will cause urlview to quit after you launch a URL.
|
|
|
06e0cf |
.SH FILES
|
|
|
06e0cf |
.PP
|
|
|
06e0cf |
-.IP "/etc/urlview/system.urlview"
|
|
|
06e0cf |
+.IP "/etc/urlview.conf"
|
|
|
06e0cf |
system-wide urlview configuration file
|
|
|
06e0cf |
.IP "~/.urlview"
|
|
|
06e0cf |
urlview configuration file
|