[Xfce-bugs] [Bug 14707] New: xfce4-session doesn't check for reboot correctly
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Wed Sep 19 11:55:02 CEST 2018
https://bugzilla.xfce.org/show_bug.cgi?id=14707
Bug ID: 14707
Summary: xfce4-session doesn't check for reboot correctly
Classification: Xfce Core
Product: Xfce4-session
Version: 4.12.0
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: Medium
Component: General
Assignee: xfce-bugs at xfce.org
Reporter: lastonestanding at tutanota.com
CC: benny at xfce.org, nick at xfce.org
Target Milestone: Xfce 4.12
Created attachment 7984
--> https://bugzilla.xfce.org/attachment.cgi?id=7984&action=edit
Patch to xfsm-systemd.c
Forwarded from
https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/1724196
---
xfce4-session 4.12.1-3ubuntu1
xfce4-session determines which buttons to grey out on the logout dialogue box
by calling
polkit_check_authorization_sync for the action org.freedesktop.login1.reboot
etc.
However, if polkit policy permits these actions but denies
org.freedesktop.login1.reboot-multiple-sessions, and multiple users are logged
in, the restart button on the logout dialogue box will be enabled even though
the user isn't able to reboot the machine.
xfce4-session should instead use the CanReboot (etc.) methods on
systemd-logind, which will automatically correctly check the correct polkit
permissions.
I attach a patch to xfsm-systemd.c which works for me.
(S)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list