Use pkexec for xfsm-shutdown (Bug 9952)

Desktop / Xfce / xfce4-session - Eric Koegel [gmail.com] - 28 August 2014 10:52 UTC

Instead of using the sudo helper, this patch calls xfsm-shutdown using pkexec. This way users can use things like fingerprint readers for authentication. Also this patch provides suspend/resume support since UPower 0.99 dropped it.

29d87f5 Use pkexec for xfsm-shutdown (Bug 9952)
configure.ac.in | 41 +-
po/POTFILES.in | 2 +-
xfce4-session/Makefile.am | 38 +-
xfce4-session/org.xfce.session.policy.in2 | 34 ++
xfce4-session/xfsm-logout-dialog.c | 155 +-----
xfce4-session/xfsm-shutdown.c | 800 +++++++++++------------------
xfce4-session/xfsm-upower.c | 12 +-
xfce4-session/xfsm-upower.h | 4 +
xfsm-shutdown-helper/main.c | 124 ++++-
9 files changed, 536 insertions(+), 674 deletions(-)

Upstream: git.xfce.org


  • Share