Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 358253

Summary: Change login_cmd example in the hal.xml guide to different one so /etc/profile gets properly sourced
Product: Gentoo Linux Reporter: Jan Hrabe <hrabe>
Component: New packagesAssignee: Theo Chatzimichos (RETIRED) <tampakrap>
Status: RESOLVED INVALID    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://dev.gentoo.org/~tampakrap/hal.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Hrabe 2011-03-10 15:47:14 UTC
After HAL was removed from my system, I followed the recommendation in a preliminary gentoo hal removal guide and modified the /etc/slim.conf login_cmd line to

login_cmd exec ck-launch-session startxfce4

The unfortunate side effect is that /etc/profile is no longer sourced and most of the $PATH is lost.  Only the default_path from /etc/slimby.conf remains.
I am not sure if this really is a slim bug but without the consolekit management the plugged in HW does not get recognized by xfce4, so the ck-launch-session is needed.  A (not entirely satisfactory) workaround is to disable slim and revert to startx from a command line.


Reproducible: Always
Comment 1 Jan Hrabe 2011-03-10 15:50:15 UTC
Please see also 

http://dev.gentoo.org/~tampakrap/hal.xml
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-03-11 07:15:29 UTC
Not really a bug yet... The documentation isn't ready... Try something like this instead:

login_cmd exec ck-launch-session /bin/bash -login /usr/share/slim/Xsession %session
Comment 3 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-03-11 13:18:33 UTC
the guide is not public any more in my devspace, Samuli has to finish it and make it official
Comment 4 Jan Hrabe 2011-03-12 18:28:45 UTC
> login_cmd exec ck-launch-session /bin/bash -login /usr/share/slim/Xsession
> %session

Yes, I can confirm that this works fine.