[polkit-kde/f20: 3/3] Install autostart file to /etc/xdg/autostart so that Plasma 5 picks it up

Daniel Vrátil dvratil at fedoraproject.org
Wed Oct 22 11:34:31 UTC 2014


commit a8924b2ae8ea4308b978348b83e16508bd7e89ba
Author: Dan Vrátil <dvratil at redhat.com>
Date:   Wed Oct 22 13:30:51 2014 +0200

    Install autostart file to /etc/xdg/autostart so that Plasma 5 picks it up

 polkit-kde.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/polkit-kde.spec b/polkit-kde.spec
index e2b5b63..03e7124 100644
--- a/polkit-kde.spec
+++ b/polkit-kde.spec
@@ -4,7 +4,7 @@
 Name:           polkit-kde
 Summary:        PolicyKit integration for KDE Desktop
 Version:        0.99.1
-Release:        4.%{snap}%{?dist}
+Release:        5.%{snap}%{?dist}
 
 License:        GPLv2+
 URL:            https://projects.kde.org/projects/extragear/base/polkit-kde-agent-1 
@@ -51,15 +51,24 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
 %find_lang polkit-kde-authentication-agent-1
 
+# Plasma 5 only picks autostart from /etc/xdg/autostart, so we move it
+# there so that both Plasma 5 and KDE 4 pick it up
+mkdir -p %{buildroot}/etc/xdg/autostart
+mv %{buildroot}/%{_datadir}/autostart/polkit-kde-authentication-agent-1.desktop \
+   %{buildroot}/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop
+
 
 %files -f polkit-kde-authentication-agent-1.lang
 %doc COPYING
 %{_libexecdir}/kde4/polkit-kde-authentication-agent-1
-%{_datadir}/autostart/polkit-kde-authentication-agent-1.desktop
+%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
 %{_kde4_appsdir}/policykit1-kde/policykit1-kde.notifyrc
 
 
 %changelog
+* Wed Oct 22 2014 Daniel Vrátil <dvratil at redhat.com> - 0.99.1-5.20130311git
+- Install autostart file to /etc/xdg/autostart so that Plasma 5 picks it up too
+
 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.99.1-4.20130311git
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list