Re: [GD-Linux] opening a URL in the default browser

Ignacio Castaño <[email protected]> Sun, 14 Sep 2003 03:30:05 +0200
Newsgroups gmane.games.devel.linux
Message-ID <[email protected]>
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
[email protected]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Gamedevlists-linux mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-linux
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=554