Re: [GD-Linux] opening a URL in the default browser
Brought to you by:
vexxed72
From: <cas...@ya...> - 2003-09-14 01:20:34
|
Ryan C. Gordon wrote: > Some Unix libraries and applications follow the "BROWSER" environment > variable, in the way that "EDITOR" is generally respected as a means > to determine the preferred text editor. From python's library > reference (since they describe it well enough) ... > > "Under Unix, if the environment variable BROWSER exists, it is > interpreted to override the platform default list of browsers, as a > colon-separated list of browsers to try in order. When the value of a > list part contains the string %s, then it is interpreted as a > literal browser command line to be used with the argument URL > substituted for the %s; if the part does not contain %s, it is simply > interpreted as the name of the browser to launch." Thanks for pointing that out! > UT2003 does this, but if BROWSER isn't set, we use a default like > this: > > "opera:mozilla:galeon:konqueror:netscape:xterm -e links:xterm -e > lynx:"; This is similar to our current approach, but with some additional browsers like FireBird. We also had another idea: use 'which' to get the full path to each executable and obtain its atime, to use the browser that was used the last time. -- Ignacio Castaño cas...@ya... |