You are not logged in.

#1 2008-01-19 02:26:30

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Qingy and Agetty. Why gives me different $PATH

Hi! I noticed that if I login as root via agetty
my $PATH contains /sbin;/opt/mozilla etc.

However, if I login as root via Qingy.
The $PATH is different, it doesn't has something like /sbin;/usr/sbin etc.

Can someone explain what happened after init load Qingy/agetty and how they find out what the $PATH is.

thanks

Offline

#2 2008-01-19 03:01:43

underpenguin
Member
Registered: 2007-02-01
Posts: 116

Re: Qingy and Agetty. Why gives me different $PATH

Double Posting Gets You No(responses)where

Offline

#3 2008-01-19 05:43:20

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: Qingy and Agetty. Why gives me different $PATH

underpenguin wrote:

Double Posting Gets You No(responses)where

Sorry if double posting is forbidden here. But I didn't realize that Qingy caused the problem when I posted the $PATH message in "Newbie".

Anyway, I realized that the problem is not Qingy itself.

If I login as root from Qingy, but to Text Console. Everything is ok. My $PATH seems the same as regular login.

However, when I am login into X from Qingy, the $PATH is different then.

Offline

#4 2008-01-19 08:54:41

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: Qingy and Agetty. Why gives me different $PATH

@phabulosa
Have asked this question myself some time ago here with no luck.
http://bbs.archlinux.org/viewtopic.php?id=41860
The important thing for me would be to find out how to set up qingy to have no change in behaviour compared to e.g. startx on my system, the proper way.

Bye, signor_rossi.

Offline

#5 2008-02-09 21:29:34

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Qingy and Agetty. Why gives me different $PATH

same problem here! starting to use qingy and noticed this, i have a long path in ~/.bashrc and loggin in via qingy seems to ignore this path :S confused...


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#6 2008-03-21 16:10:43

thegnu
Member
From: Brooklyn, NY
Registered: 2004-05-04
Posts: 280
Website

Re: Qingy and Agetty. Why gives me different $PATH

@signor_rossi, if your hack works, I say go with it, and write the qingy dev(s).  I haven't ever differentiated between bashrc and bash_profile, but over here:
http://bbs.archlinux.org/viewtopic.php?id=36343
Dusty says:

Plus, if you put that alias in your .bash_profile instead of your .bashrc, it should only be sourced for interactive sessions anyway, which means scripts won't touch it. You could even enforce this by testing in your mod_rm function to ensure you are in a login shell (I can't remember the command, I think you have to check an environment variable of some sort).

Maybe Qingy is looking at one and not the other?
Oh, and I just stumbled upon this:
http://bbs.archlinux.org/viewtopic.php?id=45038
Looks promising.
Hope this helps.  :-)


fffft!

Offline

Board footer

Powered by FluxBB