diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-11-30 09:09:33 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-11-30 09:19:59 +0100 |
commit | 4a18b7b9ec577f044066d1167a8267eced215d5e (patch) | |
tree | b77f304929fd8393fcbf87ed2f5396e42c1b3c1d | |
parent | 0527d1069a879cd9200e56a5f68f86461a019fb7 (diff) |
polkit: only provide a .policy file
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | polkit-1/actions/com.sigexec.polkit.set-brightness.policy | 6 | ||||
-rw-r--r-- | polkit-1/rules/90-set-brightness.rules | 9 |
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; - } -}); |