FS#32371 - [kdebase-workspace] shutdown and reboot don't work unless KDE is started by KDM
Attached to Project:
Arch Linux
Opened by Aurora (LadyAurora) - Thursday, 01 November 2012, 18:34 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 16 August 2013, 10:37 GMT
Opened by Aurora (LadyAurora) - Thursday, 01 November 2012, 18:34 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 16 August 2013, 10:37 GMT
|
Details
Unless KDE is started by KDM, there are no shutdown and
reboot options in the menu. Trying to shutdown and reboot
from KRunner results in a logout.
The sleep and hibernate options *are* there and work; I can shutdown and reboot from terminal emulator without root; and things like mounting disks work, so this is *not* about a broken session. The exact line that I use to start KDE is: [[ "$TTY" == '/dev/tty1' ]] && xinit /usr/bin/startkde -- vt1 -nolisten tcp &> /dev/null && logout The result is the same if KDE is started by e.g. GDM. Or really anything else except KDM. Steps to reproduce: * install kdebase-workspace (4.9.2-6 is known to fail) * start KDE through something different than KDM * notice the lack of shutdown and reboot options in Plasma menu |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Friday, 16 August 2013, 10:37 GMT
Reason for closing: Fixed
Additional comments about closing: kdebase-workspace 4.11.0-1
Friday, 16 August 2013, 10:37 GMT
Reason for closing: Fixed
Additional comments about closing: kdebase-workspace 4.11.0-1
FS#32096, but hopefully now I explained the issue more clearly and also made it clear that it's not a configuration issue relating to broken sessions)If you use xorg-xinit this means that you start your graphical session using startx, not using a login manager.
@Aurora
please test xorg-xinit 1.3.2-3
Anyway, is it really related to xorg-xinit? After all, login managers typically don't use it, and the bug occurs when using one, too (unless the one is KDM).
[phani@laptop ~]$ loginctl show-session $XDG_SESSION_ID
Id=20
Timestamp=Sat, 2012-12-08 23:07:44 IST
TimestampMonotonic=46867208881
DefaultControlGroup=name=systemd:/user/phani/20
VTNr=7
Display=:0.0
Remote=no
RemoteUser=root
Service=slim
Leader=11180
Audit=20
Type=x11
Class=user
Active=yes
State=active
KillProcesses=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=phani
https://bugs.kde.org/show_bug.cgi?id=294714
Someone can ask them to reopen?
I happened to build kde-workspace from master a few days ago and I can confirm that turn off and reboot options are available again (I am using lightdm).
In case Andrea wants to pick the fix for the next build of kde-workspace (4.10.2), the resolving commit can be found at:
http://quickgit.kde.org/?p=kde-workspace.git&a=commit&h=2b041abd0f35bfbca4f2aac0cd946bdadd6011d4
(did not test this single commit on top of kde-workspace 4.10.2, though)
http://quickgit.kde.org/?p=kde-workspace.git&a=commit&h=1ab8cc0bc1d29796aa8106c48330c7e041d6554a
I built kdebase-workspace 4.10.2 with the above two commits and the issue is fixed (I can shutdown and reboot from krunner or kde application launcher).
I doubt that kde devs will apply these patches to 4.10, as we are quite late in the 4.10 cycle.
I can post the patch and the PKGBUILD I used, if anyone is interested.
Of course, you need all the other patches used by Arch (copy the kdebase-workspace directory from abs)
git-systemd.patch (20.7 KiB)
However 4.11 beta1 packages will be in [kde-unstable] next week.
Looking forward to testing kde 4.11 beta1 next week. Andrea, huge thanks as usual!
I was wrong, 4.11 beta1 has been tagged and release date is ASAP :-)