You are not logged in.

#1 2006-02-11 04:28:43

jstech
Member
From: Baltimore
Registered: 2004-05-06
Posts: 27

/etc/profile.d/ scripts do not run in runlevel 5 [solved]

I recently switched from booting into runlevel 3, and starting X with startx to booting to runlevel 5 and using XDM.  The odd thing, however, is that now my /etc/profile.d/* scripts do not run when I login, so my $PATH is incorrect--preventing many apps from running without absolute paths (e.g. Firefox).

Anyone know when these scripts are called, and by what, and how I get XDM to do the same thing as non-graphical login in this area?

Offline

#2 2006-02-11 05:09:51

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: /etc/profile.d/ scripts do not run in runlevel 5 [solved]

You could add:

source /etc/profile

to your .xinitrc - that oughta do it if you're using XDM.

Offline

#3 2006-02-11 06:17:16

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: /etc/profile.d/ scripts do not run in runlevel 5 [solved]

Cerebral wrote:

You could add:

source /etc/profile

to your .xinitrc - that oughta do it if you're using XDM.

Actually, XDM uses ~/.xsession instead of ~/.xinitrc.  Following Cerebral's suggestion and creating a symlink to your  ~/.xinitrc will work.

Offline

#4 2006-02-11 14:32:10

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: /etc/profile.d/ scripts do not run in runlevel 5 [solved]

Snowman wrote:

Actually, XDM uses ~/.xsession instead of ~/.xinitrc.  Following Cerebral's suggestion and creating a symlink to your  ~/.xinitrc will work.

Heheh... oops.  Forgot about that, and I've had those two files symlinked for ages.  tongue  Thanks for the save, snowman.

Offline

#5 2006-02-11 15:52:33

jstech
Member
From: Baltimore
Registered: 2004-05-06
Posts: 27

Re: /etc/profile.d/ scripts do not run in runlevel 5 [solved]

Thanks--that fixed it.

And I'd noticed that XDM used .xsession, but the symlink is a good idea--I had just copied the file.  No sense in redundancy.

Offline

Board footer

Powered by FluxBB