Date: Wed, 28 Dec 2016 21:02:17 +0100 From: Bernt Hansson <bah@bananmonarki.se> To: Polytropon <freebsd@edvax.de> Cc: David Christensen <dpchrist@holgerdanske.com>, 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? Message-ID: <f6840b34-8c95-0fcf-a591-f1d6b15176fd@bananmonarki.se> In-Reply-To: <20161228173956.d3bf3a9f.freebsd@edvax.de> References: <e721fc89-46b0-ea8c-9ed3-ad6c0df58c29@holgerdanske.com> <e0b1bd9a-dbe0-31cb-ee70-0cfe87da694b@bananmonarki.se> <20161228173956.d3bf3a9f.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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: > > <match action="org.freedesktop.hal.power-management.shutdown"> > <return result="yes"/> > </match> > <match action="org.freedesktop.hal.power-management.reboot"> > <return result="yes"/> > </match> > > This can also be found in the discussion mentioned. I remember > that I did something similar required by Gnome... > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f6840b34-8c95-0fcf-a591-f1d6b15176fd>