Bug 845264

Summary: xfce4-session can't logout/restart/shutdown
Product: [openSUSE] openSUSE 13.1 Reporter: Robert Milasan <rmilasan>
Component: XfceAssignee: E-mail List <bnc-team-xfce>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: afeher, coolo, peter, sndirsch
Version: RC 1Flags: coolo: SHIP_STOPPER+
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: L3 Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: xfce4-session-error.png

Description Robert Milasan 2013-10-10 10:43:27 UTC
Running currently up to date Xfce 4.10.1 x86_64 on openSUSE 13.1. While everything works, when logged in Xfce, the user can't logout, restart, shutdown.

First try to logout, nothing happens, second try an error message pops up:

Received error while trying to log out
Session manager must be in idle state when requesting a shutdown

I've googled a bit the issue, but this shouldn't happen in 4.10.1, but in older version (at least according to what I found online).

I'll attach a screenshot of the error, might help a bit.

NOTE: trying manually with xfce4-session-logout -l, -r or -h ends up in the same error.

Just to be on the safe side, don't know if matters, tried using gdm as a DM and its still the same, so it happens with both lightdm and gdm.
Comment 1 Robert Milasan 2013-10-10 10:44:21 UTC
Created attachment 562828 [details]
xfce4-session-error.png

Here is the screenshot of the error.
Comment 2 Forgotten User cAXlJ_FoSf 2013-10-10 11:06:25 UTC
Hmm, there is also bug #841985 although it seems to be slightly different in that it throws you back to to the display manager.

openQA shows that logout/shutdown troubles started between build 704 and build 725 although I haven't been able to reproduce this with 13.1 Beta1. I'll try to reproduce this again later with a fresh install from the 13.1 repos.
Comment 3 Robert Milasan 2013-10-10 12:16:22 UTC
Found the issue. xfce4-session needs iceauth package.

After installing iceauth, I can logout without any problems.
Comment 4 Forgotten User cAXlJ_FoSf 2013-10-10 14:28:10 UTC
This is caused by the following change to openSUSE-patterns

-------------------------------------------------------------------
Fri Sep 27 17:50:11 UTC 2013 - coolo@suse.com

...

Stephan Kulow (6):
...
      no longer install xorg-x11 unless it's an update

xorg-x11-essentials does not include iceauth any more which seems pretty essential to me. Furthermore xorg-x11-essentials is also missing stuff like xset or xsetroot which YaST and and the display manager scripts from the xdm package expect to be present.

@coolo:
What are the consequences for the desktop patterns, should they depend directly on xorg-x11, I don't see any of that, they all just depend on the X11 pattern?
Also there are probably a lot of undeclared dependencies, e.g. yast graphical second stage installer on xset, xdm on xset and xsetroot. I dont't know much about libICE, do all libICE6 consumers need iceauth to be installed?
Comment 5 Forgotten User cAXlJ_FoSf 2013-10-10 15:59:03 UTC
*** Bug 841985 has been marked as a duplicate of this bug. ***
Comment 6 Bernhard Wiedemann 2013-10-11 08:00:24 UTC
This is an autogenerated message for OBS integration:
This bug (845264) was mentioned in
https://build.opensuse.org/request/show/202931 Factory / xfce4-session
Comment 7 Stefan Dirsch 2013-10-11 10:51:59 UTC
xsetroot is required by xorg-x11-essentials. I don't know why it is missing on your system. I could easily add xset as requirement to -essentials package. 

> I dont't know much about libICE, do all libICE6 consumers need iceauth to be 
> installed?

I wouldn't think so, since there is a lib. ;-) So things don't work for you without iceauth being installed?
Comment 8 Robert Milasan 2013-10-11 11:04:37 UTC
xsetroot was installed already, so that didn't need to be installed, only iceauth package, not libICE or libICE6.
Comment 9 Stefan Dirsch 2013-10-11 11:09:04 UTC
Coolo, should I add iceauth and xset to -essentials?
Comment 10 Forgotten User cAXlJ_FoSf 2013-10-11 11:17:49 UTC
xfce4-session is linked against libICE:

$ ldd /usr/bin/xfce4-session | grep ICE
        libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f843867c000)
Comment 11 Forgotten User cAXlJ_FoSf 2013-10-11 11:24:19 UTC
And fyi, the iceauth executable is called by the session management code from
http://git.xfce.org/xfce/xfce4-session/tree/xfce4-session/ice-layer.c
Comment 12 Stephan Kulow 2013-10-14 06:44:25 UTC
As long as twm and xbiff stay out of out of essentials, I'm fine with adding these small tools. I insisted on RC1 working without xorg-x11 to find exactly these issues.
Comment 13 Stefan Dirsch 2013-10-14 09:53:22 UTC
Ok. Fix submitted for factory and openSUSE:13.1:Update (SR#203210).
Comment 14 Bernhard Wiedemann 2013-10-14 10:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (845264) was mentioned in
https://build.opensuse.org/request/show/203209 Factory / xorg-x11
https://build.opensuse.org/request/show/203210 13.1 / xorg-x11
Comment 15 Forgotten User cAXlJ_FoSf 2013-10-14 14:49:56 UTC
*** Bug 845790 has been marked as a duplicate of this bug. ***