1
0
Fork 0
mirror of synced 2024-12-22 16:18:59 -05:00

fix polkit rules

This commit is contained in:
librewish 2021-02-19 17:54:11 +05:30
parent 6bed3b3c3f
commit 19bb57c776

View file

@ -16,7 +16,7 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
action id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
action.id == "org.freedesktop.udisks2.filesystem-mount-other-seat" ||
action.id == "org.freedesktop.udisks.filesystem-fstab") &&
subject.isInGroup("wheel"))
{
@ -26,13 +26,13 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.login1.power-off" ||
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
action.id == "org.freedesktop.login1.suspend" ||
action.id == "org.freedesktop.login1.suspend-multiple-sessions") &&
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
action.id == "org.freedesktop.login1.suspend" ||
action.id == "org.freedesktop.login1.suspend-multiple-sessions") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
@ -41,7 +41,7 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.upower.hibernate" ||
action.id == "org.freedesktop.upower.suspend") &&
action.id == "org.freedesktop.upower.suspend") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
@ -61,7 +61,7 @@ polkit.addRule(function(action, subject) {
polkit.addRule(function(action, subject) {
if ((action.id == "org.archlinux.pkexec.gparted" ||
action id == "org.kde.kpmcore.externalcommand.init") &&
action.id == "org.kde.kpmcore.externalcommand.init") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;