Default browser setting

John Meacham john at
Fri Jul 25 04:29:01 EEST 2003

um. sure you can, just set $BROWSER to equal a script which you can
change dynamically. that is what i do for $EDITOR, it is a script which
starts up vim with different options depending on whether it is under X,
in a screen session or whether a vim is already running, etc...

there is no reason you couldn't set $BROWSER to something which parsed
the MIME file. env variables tend to be more expressive than files,
since they can be app-local and inhereted. I guess you can emulate that
behavior with a enviornment variable pointing to a mime file to read for
defaults... or setting every entry to a script which checked the
enviornment for what to do, but seems somewhat roundabout...

On Thu, Jul 24, 2003 at 09:32:20AM +0200, Frederic Crozat wrote:
> Le mer 23/07/2003 à 20:46, Havoc Pennington a écrit :
> > On Wed, Jul 23, 2003 at 08:05:32PM +0200, Frederic Crozat wrote: 
> > > I don't think so.. But there used to be an article from ESR about that..
> > > That is why we (MdkSoft) are using $BROWSER environment to specify the
> > > browser to be used for Mdk tools.. Unfortunately this is distro
> > > specific.. I think Debian uses a script for that and RH another script..
> > > 
> > 
> > The MIME spec is way better than $BROWSER though, since you can't
> > change an env. variable dynamically. (Can't change it for apps that
> > already started up.)

John Meacham - California Institute of Technology, Alum. - john at

More information about the xdg mailing list