summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-15 18:32:52 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-15 18:32:52 +0000
commit4ba23063569630742066190734c6d3e16a76f5af (patch)
tree7d7fefc22462f3011bb6ccff337761c576bc8ae7
parentcc78a7158e54856e3866ca92482620b250fba739 (diff)
downloadmgaonline-4ba23063569630742066190734c6d3e16a76f5af.tar
mgaonline-4ba23063569630742066190734c6d3e16a76f5af.tar.gz
mgaonline-4ba23063569630742066190734c6d3e16a76f5af.tar.bz2
mgaonline-4ba23063569630742066190734c6d3e16a76f5af.tar.xz
mgaonline-4ba23063569630742066190734c6d3e16a76f5af.zip
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)
-rw-r--r--Makefile6
-rw-r--r--mdkonline.desktop10
-rw-r--r--mdkonline.spec2
-rw-r--r--x-mdv-exec.desktop9
4 files changed, 27 insertions, 0 deletions
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