You are not logged in.
Pages: 1
Hi All,
If I'm using Gnome/OpenBox along with gdm I do not need to edit my .xinitrc file, correct? But, if I want various environment variables to be loaded is there somewhere other than .bashrc or /etc/profile that I can specify such things? I've heard vague mentions of .gnomerc but can find no clear details on this file.
So, in summary: is /etc/profile or .bashrc considered the analog of .xinitrc for non-startx people?
-w
Last edited by wintercarver (2008-03-04 04:44:17)
Offline
not exactly, bashrc and /etc/profile are only executed when you start up a terminal, whereas .xinitrc always executes when you start X.
I guess an alternative would be writing a shell script and adding it as a gnome session, you can find those in preferences I think.
Archlinux on Compaq Presario v5000 laptop
Offline
not exactly, bashrc and /etc/profile are only executed when you start up a terminal, whereas .xinitrc always executes when you start X.
I guess an alternative would be writing a shell script and adding it as a gnome session, you can find those in preferences I think.
I'm pretty sure .xinitrc is NOT running upon x being initialized by gdm->gnome/openbox. All the environment variables that I try to set in .xinitrc are never set. Am I missing something obvious here?
-w
Offline
You can define global environment variables in /etc/profile, and variables local to an user in ~/.bashrc.
Offline
To further what's already been said...
~/.bashrc will execute on login and again whenever a terminal window is opened.
~/.bash_profile will execute only on login, and not every time a terminal is opened.
thayer williams ~ cinderwick.ca
Offline
Pages: 1