After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 531587 - have gdm (gdm-session-worker?) save ~/.xsession-errors in ~/.xsession-errors.old
have gdm (gdm-session-worker?) save ~/.xsession-errors in ~/.xsession-errors.old
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.22.x
Other All
: Normal enhancement
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-05 17:34 UTC by Tom London
Modified: 2008-05-08 03:13 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch to gdm-session-worker.c to save ~/.xsession-errors in ~/.xsession-errors.old (760 bytes, patch)
2008-05-05 17:38 UTC, Tom London
committed Details | Review

Description Tom London 2008-05-05 17:34:25 UTC
It would ease debugging session related issues if gdm were to save the current
~/.xsession-errors (for example, as ~/.xsession-errors.old).  This is parallel
to what Xserver does with /var/log/Xorg.0.log.

That way, you could log back in normally and still see "what happened". 
Otherwise, you have to remember to boot up in runlevel 3, or Cntl-Alt-F1 etc.

I have a suggested patch to gdm-session-worker.c. It does some minimal checks of access rights, but certainly this needs checking.
Comment 1 Tom London 2008-05-05 17:38:30 UTC
Created attachment 110417 [details] [review]
patch to gdm-session-worker.c to save ~/.xsession-errors in ~/.xsession-errors.old

Compiled and tested with Fedora package gdm-2.22.0-1.fc9.i386

Originally filed this in Fedora BZ: https://bugzilla.redhat.com/show_bug.cgi?id=445118
Comment 2 Ray Strode [halfline] 2008-05-08 03:13:09 UTC
looks good.

2008-05-07 Ray Strode  <rstrode@redhat.com>

        * daemon/gdm-session-worker.c
        (_open_session_log): Apply patch from
        Tom London <selinux@gmail.com> to save backup of
        .xsession-errors (bug 531587)