You are not logged in.

#1 2008-03-04 04:43:52

wintercarver
Member
Registered: 2008-03-02
Posts: 6

.xinitrc and gnome confussion

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

#2 2008-03-04 04:59:51

blu3ness
Member
From: Edmonton, Canada
Registered: 2007-12-28
Posts: 169

Re: .xinitrc and gnome confussion

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 smile

Offline

#3 2008-03-04 05:03:38

wintercarver
Member
Registered: 2008-03-02
Posts: 6

Re: .xinitrc and gnome confussion

blu3ness wrote:

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

#4 2008-03-04 05:32:57

veek
Member
Registered: 2006-03-10
Posts: 167

Re: .xinitrc and gnome confussion

You can define global environment variables in /etc/profile, and variables local to an user in ~/.bashrc.

Offline

#5 2008-03-04 05:57:50

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: .xinitrc and gnome confussion

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

Board footer

Powered by FluxBB