Commit 6b9a03b9 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

Update to the GNOME 3 way of doing thumbnailers

parent f243a850
......@@ -7,26 +7,11 @@ gnome_nds_thumbnailer_CPPFLAGS = $(GDK_PIXBUF_CFLAGS) $(GIO_CFLAGS)
gnome_nds_thumbnailer_LDADD = $(GDK_PIXBUF_LIBS) $(GIO_LIBS)
schemasdir = $(GCONF_SCHEMA_FILE_DIR)
schemas_in_files = gnome-nds-thumbnailer.schemas.in
schemas_DATA = gnome-nds-thumbnailer.schemas
# Rule to make the service file with bindir expanded
$(schemas_DATA): $(schemas_in_files) Makefile
thumbnailerdir = $(datadir)/thumbnailers/
thumbnailer_DATA = gnome-nds-thumbnailer.thumbnailer
gnome-nds-thumbnailer.thumbnailer: gnome-nds-thumbnailer.thumbnailer.in Makefile
@$(SED) -e "s|\@bindir\@|$(bindir)|" $< > $@
if GCONF_SCHEMAS_INSTALL
install-data-local:
if test -z "$(DESTDIR)" ; then \
for p in $(schemas_DATA) ; do \
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $$p ; \
done \
fi
else
install-data-local:
endif
EXTRA_DIST = gnome-nds-thumbnailer.schemas.in AUTHORS COPYING README
EXTRA_DIST = gnome-nds-thumbnailer.thumbnailer.in AUTHORS COPYING README
CLEANFILES = gnome-nds-thumbnailer.schemas
CLEANFILES = gnome-nds-thumbnailer.thumbnailer
......@@ -15,13 +15,5 @@ AC_SUBST(GDK_PIXBUF_LIBS)
PKG_CHECK_MODULES(GIO, gio-2.0, [], [AC_MSG_FAILURE([You need glib 2.16 or newer installed])])
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x$GCONFTOOL = "xno"; then
AC_MSG_FAILURE([gconftool-2 is needed])
fi
AM_GCONF_SOURCE_2
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
<gconfschemafile>
<schemalist>
<schema>
<applyto>/desktop/gnome/thumbnailers/application@x-nintendo-ds-rom/command</applyto>
<key>/schemas/desktop/gnome/thumbnailers/application@x-nintendo-ds-rom/command</key>
<owner>gnome-nds-thumbnailer</owner>
<type>string</type>
<default>@bindir@/gnome-nds-thumbnailer %i %o</default>
<locale name="C">
<short></short>
<long></long>
</locale>
</schema>
<schema>
<applyto>/desktop/gnome/thumbnailers/application@x-nintendo-ds-rom/enable</applyto>
<key>/schemas/desktop/gnome/thumbnailers/application@x-nintendo-ds-rom/enable</key>
<owner>gnome-nds-thumbnailer</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
<short></short>
<long></long>
</locale>
</schema>
</schemalist>
</gconfschemafile>
[Thumbnailer Entry]
TryExec=@bindir@/gnome-nds-thumbnailer
Exec=@bindir@/gnome-nds-thumbnailer -s %s %u %o
MimeType=application/x-nintendo-ds-rom;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment