Bug 156445

Summary: gnome-session does not logout when yast is running
Product: [openSUSE] SUSE Linux 10.1 Reporter: Holger Hetterich <hhetter>
Component: GNOMEAssignee: Hans Petter Jansson <hpj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: Beta 7   
Target Milestone: ---   
Hardware: i386   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Holger Hetterich 2006-03-09 13:18:27 UTC
How to reproduce:
login to gnome, run graphical yast control-center.
logout - gnome-session stops until I manually close the yast-control-center

Tell me if you need any gnome-session logs, and which one.
Comment 1 JP Rosevear 2006-03-09 20:37:29 UTC
HPJ, I thought you fixed this.
Comment 2 Hans Petter Jansson 2006-03-09 23:37:28 UTC
Yes. That was bug 112999. From gnome-session's changelog:

* Fri Jan 27 2006 - hpj@suse.de
- Set the ICEAUTHORITY env var so programs running as root can
  get to the cookies. Eliminates hangs on logout.

It still works for me on Beta 5 with the newest gnome-session package I could get from Hazard.

1) What's your ICEAUTHORITY set to after you log in?
2) What's it set to after su'ing to root?
3) Does yast2 print anything on the command line if launched from the shell, as root?
4) Does a GNOME app, e.g. gnome-control-center, print anything on the command line if launched from the shell, as root?
Comment 3 Mark Gordon 2006-03-13 20:24:10 UTC
I'm seeing the two-minute delay in SLED10 Beta7 iff I run YaST2 from a menu (which invokes it through gnomesu).  If I run YaST2 from a root prompt in a terminal, having used su, I log out right away.
Comment 4 Holger Hetterich 2006-03-14 10:39:03 UTC
on comment #2:
1) /home/holger/.ICEauthority
2) the same as above
3) no it does not
4) no

on comment #3:
that's right, I can reproduce that the hang only happens when I start yast from gnomesu. If launched in terminal, I can log out just normal.
Comment 5 Hans Petter Jansson 2006-03-20 23:44:38 UTC
The problem was that gnomesu did not spin the main loop while waiting for the child to exit - thus not processing session events. Fixed in a patch just submitted to autobuild.