aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-02-24 11:29:44 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-02-24 11:29:44 +0100
commit2d2361921b943e9558dbc5c099061ce0783b0c1e (patch)
treee88c1b3ce4fab4c11854654a8c8c69ee0e1ffa81
parent0403a06b309ace61db1dfb50c59d67c77b8d0463 (diff)
parentcdc1572ad0d8436581fdcfb59e6153306c76d8f6 (diff)
downloadayatana-indicator-display-2d2361921b943e9558dbc5c099061ce0783b0c1e.tar.gz
ayatana-indicator-display-2d2361921b943e9558dbc5c099061ce0783b0c1e.tar.bz2
ayatana-indicator-display-2d2361921b943e9558dbc5c099061ce0783b0c1e.zip
Merge branch 'tari01-pr/add-pkla'
Attributes GH PR #92: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/92
-rw-r--r--data/50-org.ayatana.indicator.display.AccountsService.pkla6
-rw-r--r--data/CMakeLists.txt4
-rw-r--r--data/org.ayatana.indicator.display.AccountsService.policy2
3 files changed, 11 insertions, 1 deletions
diff --git a/data/50-org.ayatana.indicator.display.AccountsService.pkla b/data/50-org.ayatana.indicator.display.AccountsService.pkla
new file mode 100644
index 0000000..f607642
--- /dev/null
+++ b/data/50-org.ayatana.indicator.display.AccountsService.pkla
@@ -0,0 +1,6 @@
+[Allow LightDM to set AccountsService fields]
+Identity=unix-user:lightdm
+Action=org.ayatana.indicator.display.AccountsService.ModifyAnyUser
+ResultActive=yes
+ResultInactive=yes
+ResultAny=yes
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 451c9e8..e24a925 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -82,4 +82,8 @@ if (ENABLE_COLOR_TEMP)
install (FILES 50-org.ayatana.indicator.display.AccountsService.rules DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/rules.d")
+ # 50-org.ayatana.indicator.display.AccountsService.pkla
+
+ install (FILES 50-org.ayatana.indicator.display.AccountsService.pkla DESTINATION "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/polkit-1/localauthority/10-vendor.d")
+
endif ()
diff --git a/data/org.ayatana.indicator.display.AccountsService.policy b/data/org.ayatana.indicator.display.AccountsService.policy
index a2bff7a..5a3c99a 100644
--- a/data/org.ayatana.indicator.display.AccountsService.policy
+++ b/data/org.ayatana.indicator.display.AccountsService.policy
@@ -2,7 +2,7 @@
<policyconfig>
<action id="org.ayatana.indicator.display.AccountsService.ModifyOwnUser">
<description>Set properties of own user</description>
- <message>Authentication is required to set one's own indicator display properties.</message>
+ <message>Authentication is not required to set one's own indicator display properties.</message>
<defaults>
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>