From 4ba23063569630742066190734c6d3e16a76f5af Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 15 Mar 2006 18:32:52 +0000 Subject: add a .desktop menu entry and a .desktop mime file (KDE3 does not uses the XDG mime trees and still relies on its own mime placement) (helio) --- Makefile | 6 ++++++ mdkonline.desktop | 10 ++++++++++ mdkonline.spec | 2 ++ x-mdv-exec.desktop | 9 +++++++++ 4 files changed, 27 insertions(+) create mode 100644 mdkonline.desktop create mode 100644 x-mdv-exec.desktop diff --git a/Makefile b/Makefile index 2cfff02e..e25b2dac 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,12 @@ install: all # install -m644 mdkapplet.desktop $(PREFIX)/usr/share/autostart/ install -m644 mdkonline.pm $(FBLIBDIR) for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done +# menu entry: + mkdir -p $(DATADIR)/applications/ + install -m644 mdkonline.desktop $(DATADIR)/applications/ +# mime + mkdir -p $(DATADIR)/mimelnk/applications/ + install -m644 x-mdv-exec.desktop $(DATADIR)/mimelnk/applications/ # rules to build a test rpm diff --git a/mdkonline.desktop b/mdkonline.desktop new file mode 100644 index 00000000..6f47626c --- /dev/null +++ b/mdkonline.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Exec=mdkupdate --bundle %F +Icon=/usr/share/icons/mdkonline.png +Terminal=false +MimeType=application/x-mdv-exec; +InitialPreference=0 +Name=mdkonline +Categories=Qt;KDE;System; diff --git a/mdkonline.spec b/mdkonline.spec index 21eeded8..5cb4994b 100644 --- a/mdkonline.spec +++ b/mdkonline.spec @@ -105,6 +105,8 @@ rm -rf $RPM_BUILD_ROOT %{_iconsdir}/*.png %{_liconsdir}/*.png %_datadir/mime/packages/* +%_datadir/applications/ +%_datadir/mimelnk/applications/ %{_datadir}/%{name}/pixmaps/*.png %_sysconfdir/X11/xinit.d/mdkapplet diff --git a/x-mdv-exec.desktop b/x-mdv-exec.desktop new file mode 100644 index 00000000..e39eb11f --- /dev/null +++ b/x-mdv-exec.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Icon=/usr/share/icons/mdkonline.png +Type=MimeType +MimeType=application/x-mdv-exec +Patterns= +Comment=mdkonline application updater +Hidden=false +X-KDE-AutoEmbed=false -- cgit v1.2.1