aboutsummaryrefslogtreecommitdiff
path: root/data/50-org.ayatana.indicator.keyboard.AccountsService.rules
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-10-11 01:23:13 +0200
committerRobert Tari <robert@tari.in>2023-10-11 01:23:13 +0200
commitffd995cd13bb4e9a2319b0b41b2ab919b985cb6b (patch)
tree286d813e986546d53cac8527d18f4e1d4ffb69ce /data/50-org.ayatana.indicator.keyboard.AccountsService.rules
parenta6e1383438befc0a3389e44aef8a1fe0951c10a5 (diff)
downloadayatana-indicator-keyboard-ffd995cd13bb4e9a2319b0b41b2ab919b985cb6b.tar.gz
ayatana-indicator-keyboard-ffd995cd13bb4e9a2319b0b41b2ab919b985cb6b.tar.bz2
ayatana-indicator-keyboard-ffd995cd13bb4e9a2319b0b41b2ab919b985cb6b.zip
Add PolicyKit .rules file
Diffstat (limited to 'data/50-org.ayatana.indicator.keyboard.AccountsService.rules')
-rw-r--r--data/50-org.ayatana.indicator.keyboard.AccountsService.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/50-org.ayatana.indicator.keyboard.AccountsService.rules b/data/50-org.ayatana.indicator.keyboard.AccountsService.rules
new file mode 100644
index 00000000..80c850e7
--- /dev/null
+++ b/data/50-org.ayatana.indicator.keyboard.AccountsService.rules
@@ -0,0 +1,7 @@
+// Allow LightDM to set AccountsService fields
+polkit.addRule (function (action, subject) {
+ if (action.id == "org.ayatana.indicator.keyboard.AccountsService.ModifyAnyUser" && subject.user == "lightdm")
+ {
+ return polkit.Result.YES;
+ }
+});