[PATCH] Don't put X11 auth file in $HOME
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LXDE |
Unknown
|
Unknown
|
|||
lxdm (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: lxdm
This concerns lxdm 0.2.0~svn2307+
When you log in via lxdm, the X authorization file is in its default location of ~/.Xauthority. Which is fine, unless you are on a system where home directories are served out of NFS or AFS. If the home directory suddenly becomes inaccessible (whether by a file server going down, or authentication expiring in the case of AFS), then the X auth file can't be read, and then you can't even pop up an error dialog to the user.
GDM has a UserAuthDir option that lets you place the X auth file in (for example) /tmp, which works around the above problem handily. I considered adding a similar such option to lxdm, but then figured I may as well just tweak its behavior to match that of xdm (which unconditionally sets XAUTHORITY=
A patch, against the lxdm sources in the LXDE SVN tree, is attached. (The "#ifdef DEBUG" bit is just a sanity check, to ensure that g_mkstemp_full() created a file.)
** This is an automated message ** /wiki.ubuntu. com/Bugs/ Patches.
Looking at the attachments in this bug report, I noticed that an attachment was not flagged as a patch. A patch contains changes to an Ubuntu package that will resolve a bug and this attachment is one! Subsequently, I've checked the patch flag for it. In the future when submitting patches please use the patch checkbox as there are some Launchpad searches that use this feature. You can learn more about the patch workflow at https:/