GNOME Bugzilla – Bug 493737
unconditionally replaces ~/.xsession-errors fifo with plain file
Last modified: 2011-01-14 16:10:42 UTC
Hi, I'd like to have a ~/.xsession-errors FIFO which an svlogd(8) (from the runit package) process reads from. This has the advantage of providing timestamped, automatically rotated logs. While I can modify the /etc/X11/Xsession script to leave my fifo alone, gdm itself seems to replace it with a plain file no matter what I do. Maybe gdm could be modified to only create/truncate the .xsession-errors file if it doesn't exist or is a plain file? Surely, users who create a fifo there can be assumed to know what they are doing (and thus to know where to look if gdm blocks on trying to write to the fifo). Andras -- Andras Korn <korn at chardonnay.math.bme.hu> <http://chardonnay.math.bme.hu/~korn/> QOTD: Amnesia and deja vu at the same time: a feeling you've forgotten this before.
This is also Ubuntu bug 160182 (<https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/160182>).
If someone wants to create a patch to make GDM smarter like this, I'd accept it into the 2.20 branch. However, note that GDM 2.21 is a rewrite, and I'm not sure how it will work with the $HOME/.xsession-errors file. At the moment, I don't think 2.21 even writes this file at all.
Thanks for taking the time to report this bug. However, you are using a version that is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use. By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME. Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.
Does this bug still exist in the latest version? I'm running gdm 2.20.10 and have been bitten by this bug. It would be wonderful to see a fix for this, as it seems like a fairly easy bug to fix (just do stat() to see if the file is a regular file first, before deleting it).
I've made a patch that makes gdm not renaming .xsession-errors if it is non-regular file: see bug #639527.