diff options
author | willemw12 | 2022-10-13 20:22:18 +0200 |
---|---|---|
committer | willemw12 | 2022-10-13 20:22:18 +0200 |
commit | 8c2652f1b0afb9a55fb0d0cd45f94cab31270f5e (patch) | |
tree | a72994eb386d28b646b03299fd4360627a96654a | |
parent | cc5bccaf90a5d211c557e1aa8d191508a49c1e4a (diff) | |
download | aur-8c2652f1b0afb9a55fb0d0cd45f94cab31270f5e.tar.gz |
Update group in the Policykit/UDisks2 example
-rw-r--r-- | indicator-sensors.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indicator-sensors.install b/indicator-sensors.install index a4d5e3bcfd2e..e340fb267e30 100644 --- a/indicator-sensors.install +++ b/indicator-sensors.install @@ -1,6 +1,6 @@ post_install() { cat << EOF -==> One way to solve Policykit/UDisks2 related errors ("Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to perform operation") is to define the following rules in file /etc/polkit-1/rules.d/50-udisks.rules: +==> One way to solve Policykit/UDisks2 related errors ("Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to perform operation") is to define the following rules in file /etc/polkit-1/rules.d/50-udisks.rules (where <GROUP> is for example your main/initial login user group): polkit.addRule(function(action, subject) { var YES = polkit.Result.YES; @@ -9,7 +9,7 @@ post_install() { "org.freedesktop.udisks2.ata-check-power": YES, "org.freedesktop.udisks2.ata-smart-update": YES, }; - if (subject.isInGroup("users")) { + if (subject.isInGroup("<GROUP>")) { return permission[action.id]; } }); |