From owner-freebsd-questions@freebsd.org Sat Dec 31 20:21:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1713CC99EE1 for ; Sat, 31 Dec 2016 20:21:30 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02B4214BB for ; Sat, 31 Dec 2016 20:21:30 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 31 Dec 2016 12:21:26 -0800 From: David Christensen Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? To: freebsd-questions@freebsd.org References: <2c0d9213-1adc-48b7-bdf6-a6b4a577d726@bananmonarki.se> <622bd615-48b9-031a-65d8-3c7daf663cb9@holgerdanske.com> <09d1385a-6356-b732-ddd4-ebd678c25419@bananmonarki.se> <507828f7-6621-15f8-f55d-0ad172857fc1@holgerdanske.com> <20161230154841.7d2561e2.freebsd@edvax.de> <20161231163107.64b0582d.freebsd@edvax.de> Message-ID: Date: Sat, 31 Dec 2016 12:21:26 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2016 20:21:30 -0000 On 12/31/16 10:55, Warren Block wrote: > It is very difficult to follow a dozen separate questions inside a post. Which demonstrates that Xfce on FreeBSD is program, not programming systems product. > I think one of them was about shutdown/logout/restart. This is from my > xfce notes file. Note that hal is not required for xfce at all, and I > do not have it installed. > > shutdown/reboot/logout > as root, create > /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla > > > (this is needed) > [Restart] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.restart > ResultAny=yes > ResultInactive=yes > ResultActive=yes > > [Shutdown] > Identity=unix-group:operator > Action=org.freedesktop.consolekit.system.stop > ResultAny=yes > ResultInactive=yes > ResultActive=yes 2016-12-31 11:48:30 toor@t7400 ~ # cat /usr/local/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla [Restart] Identity=unix-group:dpchrist Action=org.freedesktop.consolekit.system.restart ResultAny=yes ResultInactive=yes ResultActive=yes [Shutdown] Identity=unix-group:dpchrist Action=org.freedesktop.consolekit.system.stop ResultAny=yes ResultInactive=yes ResultActive=yes My first attempt was with "Identity=unix-group:operator". > To enable logout dialog: > Right-click logout icon on panel, Properties, First Button: Log Out > Dialog If I add Shutdown and Restart action buttons to the Xfce panel, both are grayed out and inoperative. It's time for me to start researching another approach. David