summaryrefslogtreecommitdiff
path: root/polkit-1
diff options
context:
space:
mode:
Diffstat (limited to 'polkit-1')
-rw-r--r--polkit-1/actions/com.sigexec.polkit.set-brightness.policy6
-rw-r--r--polkit-1/rules/90-set-brightness.rules9
2 files changed, 3 insertions, 12 deletions
diff --git a/polkit-1/actions/com.sigexec.polkit.set-brightness.policy b/polkit-1/actions/com.sigexec.polkit.set-brightness.policy
index 352e8bf..024589c 100644
--- a/polkit-1/actions/com.sigexec.polkit.set-brightness.policy
+++ b/polkit-1/actions/com.sigexec.polkit.set-brightness.policy
@@ -10,9 +10,9 @@
<description>Set the brightness of the monitor</description>
<description xml:lang="fr">Règle la luminosité de l'écran</description>
<defaults>
- <allow_any>no</allow_any>
- <allow_inactive>no</allow_inactive>
- <allow_active>auth_admin_keep</allow_active>
+ <allow_any>auth_admin</allow_any>
+ <allow_inactive>auth_admin</allow_inactive>
+ <allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/brightness</annotate>
<annotate key="org.freedesktop.policykit.exec.argv1">set</annotate>
diff --git a/polkit-1/rules/90-set-brightness.rules b/polkit-1/rules/90-set-brightness.rules
deleted file mode 100644
index f8b158a..0000000
--- a/polkit-1/rules/90-set-brightness.rules
+++ /dev/null
@@ -1,9 +0,0 @@
-polkit.addRule(function(action, subject) {
- if (1
- && action.id == "com.sigexec.polkit.set-brightness"
- && subject.seat == "seat0"
- )
- {
- return polkit.Result.YES;
- }
-});