On 6/14/20 3:08 PM, Pierre Labastie via blfs-dev 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?
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 do think that would be a great opportunity to describe how to create
polkit rules
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page