From 6e51e049c2dad2b69a3e71264aa47aca4589bef8 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Sat, 29 Jan 2011 14:45:03 +0100 Subject: [PATCH] correct menu installation --- share/Makefile.am | 5 +++-- share/tomb | 5 ++++- src/tomb | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/share/Makefile.am b/share/Makefile.am index a8b8eac..b76ffdc 100644 --- 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 index ff3c4b9..23b18fb 100644 --- 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 index 8b72d11..11ee8cd 100755 --- 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