e1ef0d
diff -up gvfs-1.29.90/Makefile.am.archive-integration gvfs-1.29.90/Makefile.am
e1ef0d
--- gvfs-1.29.90/Makefile.am.archive-integration	2016-08-11 14:01:26.000000000 +0200
e1ef0d
+++ gvfs-1.29.90/Makefile.am	2016-08-13 12:19:21.313402711 +0200
e1ef0d
@@ -1,5 +1,20 @@
39ba2d
 NULL =
39ba2d
 
39ba2d
+desktop_in_files = mount-archive.desktop.in
39ba2d
+
39ba2d
+mount-archive.desktop.in: mount-archive.desktop.in.in
39ba2d
+	sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
39ba2d
+
39ba2d
+desktopdir       = $(datadir)/applications
39ba2d
+if HAVE_ARCHIVE
e1ef0d
+desktop_DATA     = $(desktop_in_files:.desktop.in=.desktop)
e1ef0d
+
e1ef0d
+$(desktop_DATA): %.desktop: %.desktop.in
e1ef0d
+	$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
39ba2d
+else
39ba2d
+desktop_DATA     =
39ba2d
+endif
39ba2d
+
39ba2d
 SUBDIRS = \
39ba2d
 	common \
39ba2d
 	metadata \
e1ef0d
@@ -24,6 +39,8 @@ EXTRA_DIST = \
39ba2d
 	gvfs.doap		\
39ba2d
 	README.commits		\
39ba2d
 	MAINTAINERS		\
39ba2d
+	mount-archive.desktop.in.in	\
39ba2d
+	$(desktop_in_files)	\
39ba2d
 	m4			\
e1ef0d
 	gettext/its/polkit.loc	\
e1ef0d
 	gettext/its/polkit.its	\
e1ef0d
diff -up gvfs-1.29.90/mount-archive.desktop.in.in.archive-integration gvfs-1.29.90/mount-archive.desktop.in.in
e1ef0d
--- gvfs-1.29.90/mount-archive.desktop.in.in.archive-integration	2016-08-13 12:19:21.313402711 +0200
e1ef0d
+++ gvfs-1.29.90/mount-archive.desktop.in.in	2016-08-13 12:19:21.313402711 +0200
39ba2d
@@ -0,0 +1,13 @@
39ba2d
+[Desktop Entry]
e1ef0d
+Name=Archive Mounter
39ba2d
+Exec=@libexecdir@/gvfsd-archive file=%u
39ba2d
+X-Gnome-Vfs-System=gio
39ba2d
+MimeType=application/x-cd-image;application/x-bzip-compressed-tar;application/x-compressed-tar;application/x-tar;application/x-cpio;application/x-zip;application/zip;application/x-lzma-compressed-tar;application/x-xz-compressed-tar;
39ba2d
+Terminal=false
39ba2d
+StartupNotify=false
39ba2d
+Type=Application
39ba2d
+NoDisplay=true
39ba2d
+X-GNOME-Bugzilla-Bugzilla=GNOME
39ba2d
+X-GNOME-Bugzilla-Product=gvfs
39ba2d
+X-GNOME-Bugzilla-Component=archive-backend
39ba2d
+X-GNOME-Bugzilla-Version=@VERSION@