On Sun, Jun 14, 2020 at 4:08 PM Pierre Labastie via blfs-dev <
[email protected]> wrote:
> On Sun, 2020-06-14 at 16:03 -0400, Joe Locash via blfs-dev wrote:
> > polkit doesn't return a result if a user is in the wheel group so
> > when a user
> > logs out the options to shutdown, suspend, etc aren't displayed.
>
> Do you mean a regular user gets those option and not a user in the
> wheel group?
>
Only users in the wheel group would see the extra options.
> >
> > I propose adding a file in /etc/polkit-1/rules.d in the build of
> > lxsession
> > with the following:
> >
> > polkit.addRule(function(action, subject) {
> > if (subject.isInGroup("wheel")) {
> > return polkit.Result.YES;
> > }
> > });
> >
>
> Could be added in the build of polkit maybe? It seems more general than
> just for lxde
>
I thought of that but I'll leave that decision up to you guys ;)
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page