summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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