summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-08-31 18:15:47 +0000
committerThierry Vignaud <tv@mandriva.org>2006-08-31 18:15:47 +0000
commitf98cd7c002923fe878ddd9cccbd83b68ab48dd49 (patch)
tree1af1b4718dfb6a9c5446fc9ae84a72ec2b2b456a
parentbfb808332de7cea950e125faab512adb6d0cc426 (diff)
downloadmgaonline-f98cd7c002923fe878ddd9cccbd83b68ab48dd49.tar
mgaonline-f98cd7c002923fe878ddd9cccbd83b68ab48dd49.tar.gz
mgaonline-f98cd7c002923fe878ddd9cccbd83b68ab48dd49.tar.bz2
mgaonline-f98cd7c002923fe878ddd9cccbd83b68ab48dd49.tar.xz
mgaonline-f98cd7c002923fe878ddd9cccbd83b68ab48dd49.zip
XDG menu
-rw-r--r--mdkonline.spec31
1 files changed, 29 insertions, 2 deletions
diff --git a/mdkonline.spec b/mdkonline.spec
index 73960d63..581d979d 100644
--- a/mdkonline.spec
+++ b/mdkonline.spec
@@ -69,10 +69,35 @@ chmod +x $RPM_BUILD_ROOT%_sysconfdir/X11/xinit.d/mdkapplet
#install menu
mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat > %{buildroot}%{_menudir}/%{name} <<EOF
-?package(%{name}): needs="x11" command="%{_sbindir}/%{name}" section="System" icon="mdkonline.png" title="Mandriva Online" longtitle="Wizard for update service subscription"
-?package(%{name}): command="%{_sbindir}/mdkupdate --bundle" needs="x11" kde_opt="InitialPreference=15" section="Configuration/Other" mimetypes="application/x-mdv-exec" title="Mandriva Online Bundle" longtitle="Mandriva Linux bundle handler"
+?package(%{name}): needs="x11" command="%{_sbindir}/%{name}" section="System" icon="mdkonline.png" title="Mandriva Online" longtitle="Wizard for update service subscription" xdg="true"
+?package(%{name}): command="%{_sbindir}/mdkupdate --bundle" needs="x11" kde_opt="InitialPreference=15" section="Configuration/Other" mimetypes="application/x-mdv-exec" title="Mandriva Online Bundle" longtitle="Mandriva Linux bundle handler" xdg="true"
EOF
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-mdvonline.desktop <<EOF
+[Desktop Entry]
+Name=Mandriva Online
+Comment=Wizard for update service subscription
+Exec=%{_sbindir}/%{name}
+Icon=mdkonline.png
+Type=Application
+StartupNotify=true
+Categories=X-MandrivaLinux-System-Configuration-Networking;Settings;Network;
+EOF
+
+cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-mdvonline.desktop <<EOF
+[Desktop Entry]
+Name=Mandriva Online Bundle
+Comment=Mandriva Linux bundle handler
+Exec=%{_sbindir}/mdkupdate --bundle
+Icon=mdkonline.png
+MimeType=application/x-mdv-exec
+Type=Application
+StartupNotify=true
+Categories=X-MandrivaLinux-System-Configuration-Other;Settings;
+EOF
+
+
%post
/usr/bin/update-mime-database /usr/share/mime >/dev/null
%{update_menus}
@@ -113,6 +138,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_prefix}/lib/libDrakX/drakfirsttime
%{_prefix}/lib/libDrakX/drakfirsttime/*.pm
%{_menudir}/%{name}
+%{_datadir}/applications/mandriva-*.desktop
%{_miconsdir}/*.png
%{_iconsdir}/*.png
%{_liconsdir}/*.png
@@ -134,6 +160,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Aug 31 2006 Thierry Vignaud <tvignaud@mandriva.com> 2.1-1mdv2007.0
+- XDG menu
- translation snapshot
* Thu Apr 13 2006 Warly <warly@mandrakesoft.com> 2.0-15mdk