From owner-freebsd-questions@freebsd.org Wed Dec 28 20:02: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 35606C940C9 for ; Wed, 28 Dec 2016 20:02:30 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B20041003 for ; Wed, 28 Dec 2016 20:02:27 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id uBSK2HeG016262; Wed, 28 Dec 2016 21:02:17 +0100 (CET) (envelope-from bah@bananmonarki.se) Subject: Re: FreeBSD 11.0 i386, XDM 1.1.11_6, XFCE 4.12_1 -- How to enable GUI shutdown and restart? To: Polytropon References: <20161228173956.d3bf3a9f.freebsd@edvax.de> Cc: David Christensen , freebsd-questions@freebsd.org From: Bernt Hansson Message-ID: Date: Wed, 28 Dec 2016 21:02:17 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <20161228173956.d3bf3a9f.freebsd@edvax.de> 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: Wed, 28 Dec 2016 20:02:30 -0000 On 2016-12-28 17:39, Polytropon wrote: > On Wed, 28 Dec 2016 03:16:40 +0100, Bernt Hansson wrote: >> On 2016-12-27 05:02, David Christensen wrote: >>> How do I enable GUI Shutdown and Restart capabilities in both XDM and >>> XFCE? >> You need to write some policykit/consolekit rules, can't find them now, >> and you ned HAL. > Really? Isn't HAL obsoleted yet? As far as I know, it's not > even part of the default packages anymore... but you're correct > regarding the strange *kit XML rules. It was a long time ago that i did this. Well HAL is in ports, so i guess it's not obsolete yet. I did try both versions, mine and yours and it worked then. Nowadays i don't care much about it since i don't have a laptop, do have an arduino and will get a 3d-printer tomorrow (2016-12-29) > You also need to pay > attention to specific group memberships. > > Here is some information: > > https://forums.freebsd.org/threads/16916/ > > A more genral approach (for all users) can be followed by > editing /usr/local/etc/PolicyKit/PolicyKit.conf like this: > > > > > > > > > This can also be found in the discussion mentioned. I remember > that I did something similar required by Gnome... > >