summaryrefslogtreecommitdiffstats
path: root/mdkonline.spec
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-09-15 23:28:17 +0000
committerThierry Vignaud <tv@mandriva.org>2006-09-15 23:28:17 +0000
commitf8d7ca3f5be1afc850da51689a65fb5c453d28ac (patch)
treedfcd707c689ce424d66cf22c577d8013d356f2a1 /mdkonline.spec
parentc457c1dba697867d70207907ded7edb0f56cba41 (diff)
downloadmgaonline-f8d7ca3f5be1afc850da51689a65fb5c453d28ac.tar
mgaonline-f8d7ca3f5be1afc850da51689a65fb5c453d28ac.tar.gz
mgaonline-f8d7ca3f5be1afc850da51689a65fb5c453d28ac.tar.bz2
mgaonline-f8d7ca3f5be1afc850da51689a65fb5c453d28ac.tar.xz
mgaonline-f8d7ca3f5be1afc850da51689a65fb5c453d28ac.zip
fix autostart in KDE (#25099)
Diffstat (limited to 'mdkonline.spec')
-rw-r--r--mdkonline.spec15
1 files changed, 14 insertions, 1 deletions
diff --git a/mdkonline.spec b/mdkonline.spec
index 261fd425..e31aa423 100644
--- a/mdkonline.spec
+++ b/mdkonline.spec
@@ -57,7 +57,7 @@ cat > $RPM_BUILD_ROOT%_sysconfdir/X11/xinit.d/mdkapplet <<EOF
#!/bin/sh
DESKTOP=\$1
case \$DESKTOP in
- KDE|GNOME|IceWM) exec /usr/bin/mdkapplet;;
+ GNOME|IceWM) exec /usr/bin/mdkapplet;;
esac
EOF
@@ -97,6 +97,18 @@ StartupNotify=true
Categories=X-MandrivaLinux-System-Configuration-Other;Settings;
EOF
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/autostart
+cat > $RPM_BUILD_ROOT%{_datadir}/autostart/mandriva-mdvonline.desktop <<EOF
+[Desktop Entry]
+Name=Mandriva Online Applet
+Comment=Applet for Mandriva Online
+Exec=%{_bindir}/mdkapplet
+Icon=mdkonline.png
+Type=Application
+StartupNotify=true
+Categories=X-MandrivaLinux-System-Configuration-Networking;Settings;Network;
+X-KDE-autostart-after=kdesktop
+EOF
%post
/usr/bin/update-mime-database /usr/share/mime >/dev/null
@@ -138,6 +150,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_prefix}/lib/libDrakX/drakfirsttime
%{_prefix}/lib/libDrakX/drakfirsttime/*.pm
%{_menudir}/%{name}
+%{_datadir}/autostart/mandriva-*.desktop
%{_datadir}/applications/mandriva-*.desktop
%{_miconsdir}/*.png
%{_iconsdir}/*.png