Bug 21 - HOME not correctly set within X session
Summary: HOME not correctly set within X session
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 x86
: high normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2007-04-23 10:51 UTC by tf
Modified: 2010-12-21 06:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

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