KDE menus (Lancelot, Kmenu, Krunner) not respecting PATH?

Boyd Stephen Smith Jr. bss at iguanasuicide.net
Fri May 8 21:33:26 BST 2009


In <880dece00905081249s306ac01aia9372625cf642866 at mail.gmail.com>, Dotan 
Cohen wrote:
>2009/5/8 James Richard Tyrer <tyrerj at acm.org>:
>> 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 at iguanasuicide.net            	((_/)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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20090508/163c22e0/attachment.sig>
-------------- next 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.


More information about the kde mailing list