cinnamon: install the polkit policy file (from Fedora).

This commit is contained in:
Juan RP 2013-12-16 17:18:35 +01:00
parent 353db541ea
commit 7ed0481daa
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.cinnamon.settings-users">
<message>Authentication is required to run the Cinnamon Users and Groups</message>
<icon_name>system-users</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>

View file

@ -51,6 +51,10 @@ pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vinstall ${FILESDIR}/org.cinnamon.settings-users.policy 644 usr/share/polkit-1/actions
}
cinnamon_package() {
depends="${_RUNTIMEDEPS}"
pkg_install() {