cinnamon: autostart the polkit authentication agent (from Fedora).

This commit is contained in:
Juan RP 2013-12-16 17:45:32 +01:00
parent 7ed0481daa
commit 297d534848
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=PolicyKit Authentication Agent
Comment=PolicyKit Authentication Agent
Exec=/usr/libexec/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=
NoDisplay=true
OnlyShowIn=GNOME;XFCE;Unity;
X-GNOME-AutoRestart=true

View file

@ -30,7 +30,7 @@ do_fetch() {
pre_configure() {
# Fix required components
sed -i 's/cinnamon-fallback-mount-helper;/polkit-gnome-authentication-agent-1;/' files/usr/share/cinnamon-session/sessions/cinnamon*.session
sed -i 's/cinnamon-fallback-mount-helper;/polkit-cinnamon-authentication-agent-1;/' files/usr/share/cinnamon-session/sessions/cinnamon*.session
# fix for the python2 PAM module
sed -i 's:import PAM:import pam:' files/usr/lib/cinnamon-settings/modules/cs_user.py
@ -53,6 +53,7 @@ pre_configure() {
post_install() {
vinstall ${FILESDIR}/org.cinnamon.settings-users.policy 644 usr/share/polkit-1/actions
vinstall ${FILESDIR}//polkit-cinnamon-authentication-agent-1.desktop 644 usr/share/applications
}
cinnamon_package() {