Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-10-19 17:27:45 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-10-20 16:26:49 (GMT)
commit66e5636dcaace0d9a98845490b09721c12ce3d2b (patch)
treef59d5c02d4f30658b17f317944e2c86f77f8afdc /data
parent3f28adc16f40da7048d9693278ed2940aa1e39f0 (diff)
Run evince instances in different processes instead of single instance
- When built with DBus support a daemon is used to keep track of opened documents and reload them when reopened. - Crash recovery code has been removed. - Metadata migration code has been moved from main.c to ev-daemon.c, so that it's only run once on daemon startup. Fixes bgo#583680, bgo#434966, bgo#497388, bgo#524633 and bgo#586087.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am27
-rw-r--r--data/org.gnome.evince.Daemon.service.in3
2 files changed, 23 insertions, 7 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 883a3aa..27ba73d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -36,6 +36,17 @@ DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
desktopdir = $(datadir)/applications
desktop_DATA = $(DESKTOP_FILES)
+#
+# DBus servide file
+#
+if ENABLE_DBUS
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.gnome.evince.Daemon.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+$(service_DATA): $(service_in_files) Makefile
+ @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+endif
#
# GConf schema
@@ -102,12 +113,13 @@ update-icon-cache:
# Extra files to be included in the tarball
#
-EXTRA_DIST = \
- $(ui_DATA) \
- $(DESKTOP_IN_FILES) \
- $(schema_in_files) \
- $(man_MANS) \
- $(NULL)
+EXTRA_DIST = \
+ $(ui_DATA) \
+ $(DESKTOP_IN_FILES) \
+ $(schema_in_files) \
+ org.gnome.evince.Daemon.service.in \
+ $(man_MANS) \
+ $(NULL)
#
# Clean up properly
@@ -115,4 +127,5 @@ EXTRA_DIST = \
DISTCLEANFILES = \
$(DESKTOP_FILES) \
- $(schema_DATA)
+ $(schema_DATA) \
+ $(service_DATA)
diff --git a/data/org.gnome.evince.Daemon.service.in b/data/org.gnome.evince.Daemon.service.in
new file mode 100644
index 0000000..c987f59
--- /dev/null
+++ b/data/org.gnome.evince.Daemon.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.evince.Daemon
+Exec=@libexecdir@/evinced