From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Fix XFCE shutdown/reboot via menu. Date: Sat, 28 Nov 2015 15:14:27 +0100 Message-ID: <87lh9ius70.fsf@gnu.org> References: <87vb8vqolg.fsf@elephly.net> <87fuzz5bs5.fsf@gnu.org> <87si3zqcy5.fsf@elephly.net> <87h9kbku6i.fsf@gnu.org> <87bnaiht04.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2gGn-0005zh-OA for guix-devel@gnu.org; Sat, 28 Nov 2015 09:14:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2gGk-0005gt-He for guix-devel@gnu.org; Sat, 28 Nov 2015 09:14:33 -0500 In-Reply-To: <87bnaiht04.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 25 Nov 2015 18:46:19 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > From dd10a2c30a6ef57b6d0bd9cecb263b731d6e1483 Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Sat, 21 Nov 2015 17:47:00 +0100 > Subject: [PATCH 1/2] gnu: xfce-session: Enable shutdown/reboot menu entri= es. > > * 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 > 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 =E2=80=9CSuspend=E2=80=9D, =E2=80=9CShut D= own=E2=80=9D, and =E2=80=9CRestart=E2=80=9D > fields of the account actions widget, they don=E2=80=99t actually cause t= he > 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 =E2=80=98strace -f=E2=80=99 to xfce-= session, press =E2=80=9CShut Down=E2=80=9D, and check in the strace log what happene= d when executing =E2=80=98halt=E2=80=99 or =E2=80=98pkexec=E2=80=99 or whatever? = Or maybe polkit leaves a hint on syslog? Thanks! Ludo=E2=80=99.