Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358253 - Change login_cmd example in the hal.xml guide to different one so /etc/profile gets properly sourced
Summary: Change login_cmd example in the hal.xml guide to different one so /etc/profil...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal trivial (vote)
Assignee: Theo Chatzimichos (RETIRED)
URL: http://dev.gentoo.org/~tampakrap/hal.xml
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 15:47 UTC by Jan Hrabe
Modified: 2011-03-12 18:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.