Bug 445118 - RFE: have gdm (gdm-session-worker?) save ~/.xsession-errors in ~/.xsession-errors.old
Summary: RFE: have gdm (gdm-session-worker?) save ~/.xsession-errors in ~/.xsession-er...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gdm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: jmccann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-04 00:34 UTC by Tom London
Modified: 2015-01-14 23:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-05-04 15:12:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tom London 2008-05-04 00:34:11 UTC
Description of problem:
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 tried adding 'mv -f "$errfile" "$errfile.old"' to /etc/X11/xinit/Xsession to
no avail, so I'm guessing that this is now handled in a gdm-related command
(gdm-session-worker has the string......).


Version-Release number of selected component (if applicable):
gdm-2.22.0-1.fc9.i386

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom London 2008-05-04 01:15:59 UTC
I've located the code '_open_session_log()' in gdm-session-worker.c, and that
looks like the relevant piece of code.

If that is correct (and this is a useful change), I can try making a patch for
this.....

Comment 2 Ray Strode [halfline] 2008-05-04 15:12:38 UTC
Sure, I think a patch like that probably makes sense.  Would you mind filing the
patch upstream though?

Comment 3 Tom London 2008-05-05 16:41:52 UTC
No problem.

I'm downloading the current source so I can post a "current" patch.

I'll reference this BZ on the upstream post.

Comment 4 Tom London 2008-05-05 17:39:21 UTC
Upstream RFE/patch filed here: http://bugzilla.gnome.org/show_bug.cgi?id=531587


Note You need to log in before you can comment on or make changes to this bug.