You are not logged in.

#1 2007-05-14 20:22:17

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

kdm doesn't set profile from /etc/profile [solved]

instead of setting the proper profile, it sets one like

/bin:/usr/bin:/usr/games:/usr/local/bin

gdm doesn't have this problem, though it doesn't seem to allow passwordless logins, (if it did, i'd use it):

This here didn't work:
http://ubuntuforums.org/showthread.php?p=142273

doesn't seem to be much in the way of profiles in the config at /opt/kde/share/config/kdm, and sourcing /etc/profile in the Xstartup script there doesn't help.

Thanks in advance

Last edited by vogt (2007-05-16 23:17:23)

Offline

#2 2007-05-15 07:14:43

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: kdm doesn't set profile from /etc/profile [solved]

Hello,

vogt wrote:

instead of setting the proper profile

What do you mean by the 'proper profile' ?
Can you give more details on what you are trying to do ?
Did you have a look at /etc/profile.d/kde ?

Offline

#3 2007-05-16 02:16:26

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: kdm doesn't set profile from /etc/profile [solved]

I mean, kdm does not source /etc/profile directly, therefore without a symlink from /opt/mozilla/bin/firefox to somewhere within that path, firefox, or any other program outside of /bin:/usr/bin:/usr/local/bin does not get run without specifying the whole path (which I would rather not do from dmenu).

I don't believe that
/etc/profile.d/kde
is sourced by kdm; the path kdm sets does not contain anything from /opt/kde, which is what /etc/profile.d/kdm is meant to do.

none of the config files i've looked at mention a /usr/games, and neither is /usr/local/bin. It would seem to be like some default path chosen by kdm?

How to change the path set by kdm is the larger question.

Offline

#4 2007-05-16 07:39:12

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: kdm doesn't set profile from /etc/profile [solved]

I also use Kdm and Firefox and I do not have this problem.
The way things work in arch :

/etc/profile sources every files from /etc/profile.d
If the path to your firefox binaries is not present in either  /etc/profile or any of the files in /etc/profile.d, then there is not chance to have it in your path.

Can you please post the contain of your /etc/profile file within a [ code ] tag
and the result of the command :

grep "firefox" /etc/profile /etc/profile.d

Thank you !
Cheers,
Chicha

Offline

#5 2007-05-16 08:45:58

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: kdm doesn't set profile from /etc/profile [solved]

vogt wrote:

I mean, kdm does not source /etc/profile directly, therefore without a symlink from /opt/mozilla/bin/firefox to somewhere within that path, firefox, or any other program outside of /bin:/usr/bin:/usr/local/bin does not get run without specifying the whole path (which I would rather not do from dmenu).

I don't believe that
/etc/profile.d/kde
is sourced by kdm; the path kdm sets does not contain anything from /opt/kde, which is what /etc/profile.d/kdm is meant to do.

none of the config files i've looked at mention a /usr/games, and neither is /usr/local/bin. It would seem to be like some default path chosen by kdm?

How to change the path set by kdm is the larger question.

I had a similar problem, with the /etc/profile.d/ entries not being properly sourced. I found out (at least I think that's what was the problem) that I sourced /etc/profile in the wrong startup file - I had it in zshrc while it should be in zshenv in order to be sourced in the login shell (at least I think that was the reason - correct me if I'm wrong, someone).
I can't remember what the equivalent files are called in bash - bashrc and init-something?

Offline

#6 2007-05-16 09:01:48

chicha
Member
From: France
Registered: 2007-04-20
Posts: 271

Re: kdm doesn't set profile from /etc/profile [solved]

You have .bashrc and .bash_profile
.bashrc is used in an interactive shell
.bash_profile is used in a login shell

Offline

#7 2007-05-16 23:15:48

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: kdm doesn't set profile from /etc/profile [solved]

btw, using zsh, though the problem exists when using bash;

kdm doesnt source /etc/profile by itself,
unlike gdm, or login (linux terminal), so adding

source /etc/profile

to ~/.zshenv, or ~/.bash_profile sets the path for everything: dmenu, and in terminals

Last edited by vogt (2007-05-16 23:16:56)

Offline

Board footer

Powered by FluxBB