fix polkit rules
This commit is contained in:
parent
6bed3b3c3f
commit
19bb57c776
1 changed files with 10 additions and 10 deletions
|
@ -16,7 +16,7 @@ polkit.addRule(function(action, subject) {
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
|
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
|
||||||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
|
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") &&
|
action.id == "org.freedesktop.udisks.filesystem-fstab") &&
|
||||||
subject.isInGroup("wheel"))
|
subject.isInGroup("wheel"))
|
||||||
{
|
{
|
||||||
|
@ -26,13 +26,13 @@ polkit.addRule(function(action, subject) {
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.freedesktop.login1.power-off" ||
|
if ((action.id == "org.freedesktop.login1.power-off" ||
|
||||||
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
|
action.id == "org.freedesktop.login1.power-off-multiple-sessions" ||
|
||||||
action.id == "org.freedesktop.login1.reboot" ||
|
action.id == "org.freedesktop.login1.reboot" ||
|
||||||
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
||||||
action.id == "org.freedesktop.login1.hibernate" ||
|
action.id == "org.freedesktop.login1.hibernate" ||
|
||||||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
|
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
|
||||||
action.id == "org.freedesktop.login1.suspend" ||
|
action.id == "org.freedesktop.login1.suspend" ||
|
||||||
action.id == "org.freedesktop.login1.suspend-multiple-sessions") &&
|
action.id == "org.freedesktop.login1.suspend-multiple-sessions") &&
|
||||||
subject.isInGroup("wheel"))
|
subject.isInGroup("wheel"))
|
||||||
{
|
{
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
|
@ -41,7 +41,7 @@ polkit.addRule(function(action, subject) {
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.freedesktop.upower.hibernate" ||
|
if ((action.id == "org.freedesktop.upower.hibernate" ||
|
||||||
action.id == "org.freedesktop.upower.suspend") &&
|
action.id == "org.freedesktop.upower.suspend") &&
|
||||||
subject.isInGroup("wheel"))
|
subject.isInGroup("wheel"))
|
||||||
{
|
{
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
|
@ -61,7 +61,7 @@ polkit.addRule(function(action, subject) {
|
||||||
|
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if ((action.id == "org.archlinux.pkexec.gparted" ||
|
if ((action.id == "org.archlinux.pkexec.gparted" ||
|
||||||
action id == "org.kde.kpmcore.externalcommand.init") &&
|
action.id == "org.kde.kpmcore.externalcommand.init") &&
|
||||||
subject.isInGroup("wheel"))
|
subject.isInGroup("wheel"))
|
||||||
{
|
{
|
||||||
return polkit.Result.YES;
|
return polkit.Result.YES;
|
||||||
|
|
Loading…
Reference in a new issue