cinnamon: autostart the polkit authentication agent (from Fedora).
This commit is contained in:
parent
7ed0481daa
commit
297d534848
|
@ -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
|
|
@ -30,7 +30,7 @@ do_fetch() {
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# Fix required components
|
# 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
|
# fix for the python2 PAM module
|
||||||
sed -i 's:import PAM:import pam:' files/usr/lib/cinnamon-settings/modules/cs_user.py
|
sed -i 's:import PAM:import pam:' files/usr/lib/cinnamon-settings/modules/cs_user.py
|
||||||
|
@ -53,6 +53,7 @@ pre_configure() {
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/org.cinnamon.settings-users.policy 644 usr/share/polkit-1/actions
|
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() {
|
cinnamon_package() {
|
||||||
|
|
Loading…
Reference in New Issue