Ricardo Wurmus <[email protected]> skribis:

> From dd10a2c30a6ef57b6d0bd9cecb263b731d6e1483 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <[email protected]>
> Date: Sat, 21 Nov 2015 17:47:00 +0100
> Subject: [PATCH 1/2] gnu: xfce-session: Enable shutdown/reboot menu entries.
>
> * gnu/packages/xfce.scm (xfce-session)[inputs]: Add upower and polkit.
> [source]: Replace paths to "shutdown" with "halt" and "restart".

LGTM.

> From e3050bed45d11d9dfc500c4f0d1b6132013f6b76 Mon Sep 17 00:00:00 2001
> From: Ricardo Wurmus <[email protected]>
> Date: Sat, 21 Nov 2015 22:40:22 +0100
> Subject: [PATCH 2/2] services: Add pkexec to setuid programs.
>
> * gnu/services/desktop.scm (polkit-setuid-programs): Add pkexec to
>   list of setuid programs.

LGTM.

> While these patches enable the “Suspend”, “Shut Down”, and “Restart”
> fields of the account actions widget, they don’t actually cause the
> computer to suspend, shut down, or reboot.  The X session is terminated,
> but we end up at the SLIM login screen again.

This is weird.  Could you maybe attach ‘strace -f’ to xfce-session,
press “Shut Down”, and check in the strace log what happened when
executing ‘halt’ or ‘pkexec’ or whatever?  Or maybe polkit leaves a hint
on syslog?

Thanks!

Ludo’.

Reply via email to