commit 6e51e049c2dad2b69a3e71264aa47aca4589bef8
parent d5f1ce3b2e38aefd78c43ed6057d4769c361367a
Author: Jaromil <jaromil@dyne.org>
Date: Sat, 29 Jan 2011 14:45:03 +0100
correct menu installation
Diffstat:
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/share/Makefile.am b/share/Makefile.am
@@ -7,8 +7,8 @@ AppReg_DATA = tomb.applications
MimeInfodir = $(datadir)/mime-info
MimeInfo_DATA = tomb.keys tomb.mime
-Mimedir = $(prefix)/lib/mime/packages
-Mime_DATA = tomb
+Menudir = $(datadir)/menu
+Menu_DATA = tomb
Iconsdir = $(datadir)/icons $(datadir)/app-install/icons
Icons_DATA = monmort.png
@@ -17,6 +17,7 @@ install-data-hook:
xdg-mime install dyne-tomb.xml
xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort
xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort
+ echo "application/x-tomb-volume; tomb-open '%s'; priority=8" > $(prefix)/lib/mime/packages/tomb
update-desktop-database
update-menus
update-mime
diff --git a/share/tomb b/share/tomb
@@ -1 +1,4 @@
-application/x-tomb-volume; tomb-open '%s'; priority=8
+?package(tomb):command="tomb" icon="/usr/share/pixmaps/monmort.xpm" needs="cryptsetup" \
+ section="Applications/Accessories" title="Tomb" hints="Crypto" \
+ hotkey="Tomb"
+
diff --git a/src/tomb b/src/tomb
@@ -595,6 +595,7 @@ Icon=monmort.xpm
Terminal=false
Categories=Utility;Security;Archiving;Filesystem;
MimeType=application/x-tomb-volume;
+X-AppInstall-Package=tomb
EOF
update-desktop-database