summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-04 06:48:36 -0700
committerStefano Karapetsas <[email protected]>2012-09-04 06:48:36 -0700
commit6d53504e6a55dc755b425ca26ef374c04973f9f6 (patch)
tree5c2c0d2b305f48660882cfed583ac65e8d673842
parent0cee6386acad57fdafb374fb389bc80fcf7e8546 (diff)
parent763861dfa48f1d8a742e6517d8c90c45d01bce5d (diff)
downloadatril-6d53504e6a55dc755b425ca26ef374c04973f9f6.tar.bz2
atril-6d53504e6a55dc755b425ca26ef374c04973f9f6.tar.xz
Merge pull request #9 from NiceandGently/master
add thumbnailer file
-rw-r--r--thumbnailer/Makefile.am17
-rw-r--r--thumbnailer/atril.thumbnailer.in6
2 files changed, 20 insertions, 3 deletions
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index 776a9c67..5bbbf5b8 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -1,4 +1,3 @@
-
bin_PROGRAMS = atril-thumbnailer
atril_thumbnailer_SOURCES = \
@@ -28,6 +27,16 @@ atril_thumbnailer_LDADD = \
$(top_builddir)/libdocument/libatrildocument.la \
$(FRONTEND_LIBS)
+thumbnailerdir = $(datadir)/thumbnailers
+thumbnailer_in_files = atril.thumbnailer.in
+thumbnailer_DATA = $(thumbnailer_in_files:.thumbnailer.in=.thumbnailer)
+
+
+atril.thumbnailer: $(thumbnailer_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@ATRIL_MIME_TYPES\@|$(ATRIL_MIME_TYPES)|" \
+ $< > $@
+
schema_files = \
atril-thumbnailer-dvi.schemas.in \
atril-thumbnailer-djvu.schemas.in \
@@ -80,9 +89,11 @@ endif
endif # WITH_MATECONF
EXTRA_DIST = \
- $(schema_files)
+ $(schema_files) \
+ $(thumbnailer_in_files)
DISTCLEANFILES = \
- $(schema_DATA)
+ $(schema_DATA) \
+ $(thumbnailer_DATA)
-include $(top_srcdir)/git.mk
diff --git a/thumbnailer/atril.thumbnailer.in b/thumbnailer/atril.thumbnailer.in
new file mode 100644
index 00000000..0de63f80
--- /dev/null
+++ b/thumbnailer/atril.thumbnailer.in
@@ -0,0 +1,6 @@
+[Thumbnailer Entry]
+TryExec=atril-thumbnailer
+Exec=atril-thumbnailer -s %s %u %o
+MimeType=@ATRIL_MIME_TYPES@
+
+