D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] environment variables

 

On 11/7/06, Thomas Arrow <tom@xxxxxxxxxx> wrote:
> Hi,
> I think you could just put "export BROWSER=/usr/bin/mozilla-firefox" in
> ~/.bashrc or in the kde startup folder.
> you can always run export BROWSER=/usr/bin/mozilla-firefox in bash and
> it will be set like that for the session but when you log out it will
> revert, thats why you should put it in your bashrc. There may already be
> a browser entry there, if so just overwrite it.

Don't think the bashrc will work unless you spark up stuff from the
shell. The place to set up stuff like this is the ~/.xsession. When
you log in from kdm/gdm/xdm etc the x startup scripts call the system
wide xsession which should call any .xsession file in the users home
directory. Some distros vary the name of .xsession so just check that
as well.

This will ensure the env vars are valid for the kdm/gnome etc session
as well as the shell.


-- 
Robin Cornelius
http://www.byteme.org.uk

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html