From owner-freebsd-questions@freebsd.org Sun Jan 1 18:58:55 2017 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 BD4BBC9A5DE for ; Sun, 1 Jan 2017 18:58:55 +0000 (UTC) (envelope-from doug@safeport.com) Received: from cyrus.watson.org (cyrus.watson.org [198.74.231.69]) by mx1.freebsd.org (Postfix) with ESMTP id 820D5131C for ; Sun, 1 Jan 2017 18:58:55 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [198.74.231.63]) by cyrus.watson.org (Postfix) with ESMTPS id 3842C48979 for ; Sun, 1 Jan 2017 13:58:48 -0500 (EST) Received: from fledge.watson.org (doug@localhost.watson.org [127.0.0.1]) by fledge.watson.org (8.15.2/8.15.2) with ESMTP id v01Iwmim011268 for ; Sun, 1 Jan 2017 13:58:48 -0500 (EST) (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.15.2/8.15.2/Submit) with ESMTP id v01IwmGh011264 for ; Sun, 1 Jan 2017 13:58:48 -0500 (EST) (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Sun, 1 Jan 2017 13:58:48 -0500 (EST) From: doug@safeport.com X-X-Sender: doug@fledge.watson.org Reply-To: doug@fledge.watson.org To: freebsd-questions@FreeBSD.org Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? In-Reply-To: Message-ID: 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> <9eb174e8-e398-5ca5-6dda-9b7bc0237af9@bananmonarki.se> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (fledge.watson.org [127.0.0.1]); Sun, 01 Jan 2017 13:58:48 -0500 (EST) 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: Sun, 01 Jan 2017 18:58:55 -0000 On Sat, 31 Dec 2016, Warren Block wrote: > On Sat, 31 Dec 2016, Bernt Hansson wrote: > >> On 2016-12-31 21:21, David Christensen wrote: >>> 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 >>> >> This is/was for HAL on freebsd. I've got it working in FreeBSD 5, 6, 7 >> something. > > Pretty sure this is still needed for polkit. But I could be wrong. I was > wrong that one time, but then it turned out that I was actually right, and > was wrong about being wrong. > >> Now there is devd instead of HAL. Which i know very little about. > > devd is used, or can be used, for keyboard and mouse hotplug detection in X. > But it doesn't do the other stuff that hald did. Which shouldn't matter in > this case, as xfce just used hal to detect hotplugged storage devices. I have what I assume is a really dump, and perhaps off the topic of this thread question, so it only goes to the list. This is an immense amount of structure and work to essentially get a wrapper for "shutdown -[r|p] now". So what am I missing? I gave up on this around XFCE 4.6 (or so) because the instructions did not work and hal (for me anyway) preformed much like its namesake.