Re: [kde] KDE menus (Lancelot, Kmenu, Krunner) not respecting PATH?



In <880dece00905081249s306ac01aia9372625cf642866@xxxxxxxxxxxxxx>, Dotan
Cohen wrote:
2009/5/8 James Richard Tyrer <tyrerj@xxxxxxx>:
Dotan Cohen wrote:
[T]his got me on my way:

$ cat .kde/env/profile.sh
PATH=$HOME/.bin:$PATH
export PATH
This will work for starting KDE, but you need to keep in mind that if
you do anything other than starting KDE with KDM that your $HOME/.bin
directory might not be added to your PATH.

While debugging startup/login scripts can be a real bitch, it would be
better to find out why your $HOME/.bash_profile script isn't modifying
your PATH as expected. It is best to do things correctly and the
.kde/env directory should be used only for things that are KDE specific.
How would one go about that? It might be a *buntu thing?

On Debian and openSUSE, the default Xsession for KDE is
/usr/share/xsessions/kde.desktop,[1] which contains the line
"Exec=/usr/bin/startkde". This causes /usr/bin/startkde to be run to bring
up your X environment.

On both those systems, /usr/bin/startkde does not read ~/.bash_profile or
~/.profile. (Its she-bang line is "#!/bin/sh".) It is working as designed.
Ignore JRT, he's wrong, as usual. ;) :P j/k
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss@xxxxxxxxxxxxxxxxx ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/

[1] For KDE 4 on openSUSE, it is currently /usr/share/xsessions/kde4.dekstop
that might be changing since KDE 3 won't be in 11.2, I think.

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: [kde] KDE menus (Lancelot, Kmenu, Krunner) not respecting PATH?
    ... the file needs to be made executable. ... you do anything other than starting KDE with KDM that your $HOME/.bin ... While debugging startup/login scripts can be a real bitch, ... .kde/env directory should be used only for things that are KDE specific. ...
    (KDE)
  • Re: [kde] KDE menus (Lancelot, Kmenu, Krunner) not respecting PATH?
    ... the file needs to be made executable. ... you do anything other than starting KDE with KDM that your $HOME/.bin ... While debugging startup/login scripts can be a real bitch, ... .kde/env directory should be used only for things that are KDE specific. ...
    (KDE)
  • Re: viewer association on linux.
    ... KDE I dislike for other reasons. ... If I want something that looks like Windowmaker, ... that I mind. ...
    (alt.os.linux.suse)
  • Re: [kde] Why KDE4 is called KDE?
    ... one obvious difference is that our politicians are paid out of our ... democracy (I believe that Anne does live in a democratic nation) as we ... I honestly don't mind that people don't agree with me, but I do mind that they ... KDE Community Working Group ...
    (KDE)
  • Re: Likely new KDE exploit
    ... which can be exploited on systems using kde 3.5.6. ... The cursor immediately ... A jumpy mice with a mind of its own isn't anything new, ...
    (comp.windows.x.kde)