removed elogind bloatware

This commit is contained in:
Luc Bijl 2023-04-05 21:48:05 +02:00
parent cd7a9d846e
commit 6b1a92e419
5 changed files with 39 additions and 16 deletions

View file

@ -0,0 +1,17 @@
polkit.addRule(function(action, subject)
{
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/bin/shutdown" && subject.isInGroup("wheel"))
return polkit.Result.YES;
});
polkit.addRule(function(action, subject)
{
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/bin/zzz" && subject.isInGroup("wheel"))
return polkit.Result.YES;
});
polkit.addRule(function(action, subject)
{
if (action.id.startsWith("org.freedesktop.udisks2.") && subject.isInGroup("wheel"))
return polkit.Result.YES;
});