Added support for application/x-nintendo-ds-rom mime type

in gtk desktop file.
Also added some (un)install hooks so that mime type
database is updated when (un)installing the gtk port.
Those two changes let users double-click on a rom to open
it with the gtk port.
This commit is contained in:
yabause 2009-07-12 06:22:41 +00:00
parent ff2de2bc58
commit 69ac706959
3 changed files with 17 additions and 0 deletions

View File

@ -151,6 +151,8 @@ AC_PROVIDE_IFELSE([PKG_PROG_PKG_CONFIG], [
PKG_CHECK_MODULES(LIBAGG, libagg >= 2.5.0, HAVE_LIBAGG=yes, HAVE_LIBAGG=no)
AC_SUBST(LIBAGG_CFLAGS)
AC_SUBST(LIBAGG_LIBS)
AC_PATH_PROG(UPDATEDESKTOP, [update-desktop-database])
fi
],[
echo "WARNING: pkg-config is not available therefore gtk, gtk-glade UIs and lua scripting are not available either."

View File

@ -24,3 +24,17 @@ desmume_LDADD = ../libdesmume.a \
if HAVE_GDB_STUB
desmume_LDADD += ../gdbstub/libgdbstub.a
endif
UPDATE_DESKTOP = \
appsdir=$(DESTDIR)$(datadir)/applications ; \
if [ -f $$appsdir/mimeinfo.cache ] ; then \
if test ! "x$(UPDATEDESKTOP)" = "x" ; then \
$(UPDATEDESKTOP) $$appsdir ; \
fi \
fi
install-data-hook:
$(UPDATE_DESKTOP)
uninstall-hook:
$(UPDATE_DESKTOP)

View File

@ -7,3 +7,4 @@ TryExec=desmume
Exec=desmume
Icon=DeSmuME
Categories=GNOME;GTK;Game;Emulator;
MimeType=application/x-nintendo-ds-rom;