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?

> 
> 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

> If the user is in the group wheel they will now see the extra options
> when
> logging out.
> 
> To test no logout is needed.  Just create the file and lxpolkit will
> pick it up.
> 

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to