Skip to content
Commit c7b72b6f authored by Oliver Henshaw's avatar Oliver Henshaw
Browse files

Don't give InterruptSession special treatment

Revert "Override ck check if the last active user requested to shutdown
the session." and matching check in systemd support.

Allowing InterruptSession when another consolekit/loginctl session is
Active means that PowerDevil may attempt to autosuspend the system from
the Inactive session. Normally polkit disallows this and no harm is done
but some systems have a "ResultInactive=auth_admin" policy. This will
bring up a root dialogue on the inactive session, which is annoying and
unnecessary at best. Due to a (upower?) bug this will also block
upower suspend actions in the active session.

This reverts commit 2606ff00. It's not
clear whether https://bugs.kde.org/show_bug.cgi?id=277774 was ever fixed
by that commit.

CCBUG: 298712
REVIEW: 107022
(cherry picked from commit c4391232)
parent d91dfc6e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment