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:
parent
ff2de2bc58
commit
69ac706959
|
@ -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)
|
PKG_CHECK_MODULES(LIBAGG, libagg >= 2.5.0, HAVE_LIBAGG=yes, HAVE_LIBAGG=no)
|
||||||
AC_SUBST(LIBAGG_CFLAGS)
|
AC_SUBST(LIBAGG_CFLAGS)
|
||||||
AC_SUBST(LIBAGG_LIBS)
|
AC_SUBST(LIBAGG_LIBS)
|
||||||
|
|
||||||
|
AC_PATH_PROG(UPDATEDESKTOP, [update-desktop-database])
|
||||||
fi
|
fi
|
||||||
],[
|
],[
|
||||||
echo "WARNING: pkg-config is not available therefore gtk, gtk-glade UIs and lua scripting are not available either."
|
echo "WARNING: pkg-config is not available therefore gtk, gtk-glade UIs and lua scripting are not available either."
|
||||||
|
|
|
@ -24,3 +24,17 @@ desmume_LDADD = ../libdesmume.a \
|
||||||
if HAVE_GDB_STUB
|
if HAVE_GDB_STUB
|
||||||
desmume_LDADD += ../gdbstub/libgdbstub.a
|
desmume_LDADD += ../gdbstub/libgdbstub.a
|
||||||
endif
|
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)
|
||||||
|
|
|
@ -7,3 +7,4 @@ TryExec=desmume
|
||||||
Exec=desmume
|
Exec=desmume
|
||||||
Icon=DeSmuME
|
Icon=DeSmuME
|
||||||
Categories=GNOME;GTK;Game;Emulator;
|
Categories=GNOME;GTK;Game;Emulator;
|
||||||
|
MimeType=application/x-nintendo-ds-rom;
|
||||||
|
|
Loading…
Reference in New Issue