1url_handler.pl(1) Spawn appropriate viewer for a given URL url_handler.pl(1)
2
3
4
6 url_handler.pl - Spawn appropriate viewer for a given URL
7
9 url_handler.pl URL
10
12 url_handler.pl takes an URL as argument and spawns the first executable
13 viewer found in either $BROWSER_SCHEME or $BROWSER.
14
16 $BROWSER_SCHEME
17
18 The user's preferred utility to browse URLs of type SCHEME. May
19 actually consist of a sequence of colon-separated browser commands to
20 be tried in order until one succeeds. If a command part contains %s,
21 the URL is substituted there, otherwise the browser command is simply
22 called with the URL as its last argument. %% is replaced by a single
23 percent sign (%), and %c is replaced by a colon (:). Examples:
24
25 $BROWSER_FTP="wget:ncftp"
26 $BROWSER_GOPHER="lynx:links"
27 $BROWSER_MAILTO="mutt:pine -url"
28 $BROWSER_NEWS="lynx"
29 $BROWSER_NNTP="lynx"
30
31 $BROWSER
32
33 The user's preferred utility to browse URLs for which there is no
34 special viewer defined via $BROWSER_SCHEME. Again it may actually
35 consist of a sequence of colon-separated browser commands to be tried
36 in order until one succeeds. If a command part contains %s, the URL is
37 substituted there, otherwise the browser command is simply called with
38 the URL as its last argument. %% is replaced by a single percent sign
39 (%), and %c is replaced by a colon (:). Examples:
40
41 $BROWSER="firefox -a firefox -remote
42 openURL\(%s\):opera:konqueror:links2 -g:lynx:w3m"
43
45 url_handler.pl was designed to work together with tin(1) which only
46 issues shell escaped absolute URLs thus url_handler.pl does not try
47 hard to shell escape its input nor does it convert relative URLs into
48 absolute ones! If you use url_handler.pl from other applications be
49 sure to at least shell escape its input!
50
52 Urs Janssen <urs@tin.org>
53
55 <http://www.catb.org/~esr/BROWSER/>
56 <http://www.dwheeler.com/browse/secure_browser.html>
57
58
59
600.1.3 January 13th, 2020 url_handler.pl(1)