Bug 21

Summary: HOME not correctly set within X session
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: tf <tf>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description tf 2007-04-23 10:51:02 UTC
The HOME var is set to '/' for anyting running under X.

It appears that the /etc/X11/Xinit script that is supposed to set it is never
executed; before the server is started the /etc/X11/Xsession is run, but that 
only set HOME_VOLATILE, not HOME. I am not sure whether the best solution is to
add HOME to Xsession, or whether the Xinit script should be chained in.
Comment 1 tf 2007-04-25 11:22:41 UTC
I have added export HOME to the Xsession script at least for now.
Comment 2 Richard Purdie 2009-05-28 00:22:55 UTC
Recent changes to Poky mean this is no longer a problem. The Xinit script has been removed and the Xserver script is run from su which makes sure the environment is sane.