diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-12 21:08:14 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-12 21:08:14 +0200 |
commit | 9193f0918ea77ccb42fe40726681b5e06f22bac4 (patch) | |
tree | 944b9ac9c3c6615228ead3e16906e5df4d8cba9d | |
parent | 8d45008e061761f270679fa1ebdd223f3263270a (diff) | |
parent | be8cfac805a05001277613c4a37fcf2e6734a643 (diff) | |
download | ayatana-indicator-sound-9193f0918ea77ccb42fe40726681b5e06f22bac4.tar.gz ayatana-indicator-sound-9193f0918ea77ccb42fe40726681b5e06f22bac4.tar.bz2 ayatana-indicator-sound-9193f0918ea77ccb42fe40726681b5e06f22bac4.zip |
Merge branch 'tari01-pr/polkit-rules'
Attributes GH PR #95: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/95
-rw-r--r-- | data/50-org.ayatana.indicator.sound.AccountsService.rules | 7 | ||||
-rw-r--r-- | data/CMakeLists.txt | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/data/50-org.ayatana.indicator.sound.AccountsService.rules b/data/50-org.ayatana.indicator.sound.AccountsService.rules new file mode 100644 index 0000000..426326b --- /dev/null +++ b/data/50-org.ayatana.indicator.sound.AccountsService.rules @@ -0,0 +1,7 @@ +// Allow LightDM to set AccountsService fields +polkit.addRule (function (action, subject) { + if (action.id == "org.ayatana.indicator.sound.AccountsService.ModifyAnyUser" && subject.user == "lightdm") + { + return polkit.Result.YES; + } +}); diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index c988aa4..4052e19 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -92,3 +92,7 @@ DESTINATION "${POLKIT_DATA_DIR}/actions" install(FILES 50-org.ayatana.indicator.sound.AccountsService.pkla DESTINATION "${POLKIT_LIB_DIR}/localauthority/10-vendor.d" ) + +# 50-org.ayatana.indicator.sound.AccountsService.rules + +install (FILES 50-org.ayatana.indicator.sound.AccountsService.rules DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/rules.d") |