From 4a18b7b9ec577f044066d1167a8267eced215d5e Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Fri, 30 Nov 2018 09:09:33 +0100 Subject: polkit: only provide a .policy file Signed-off-by: Olivier Gayot --- polkit-1/actions/com.sigexec.polkit.set-brightness.policy | 6 +++--- polkit-1/rules/90-set-brightness.rules | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 polkit-1/rules/90-set-brightness.rules (limited to 'polkit-1') 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 @@ Set the brightness of the monitor Règle la luminosité de l'écran - no - no - auth_admin_keep + auth_admin + auth_admin + yes /usr/local/bin/brightness set 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; - } -}); -- cgit v1.2.3