summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-10-13 11:40:02 +0200
committerOndrej Holy <oholy@redhat.com>2016-11-18 16:23:27 +0100
commit28e06fb0a88da987aa91becc360d4b347c19248a (patch)
tree4a68dbfbdedac56a66abc7b703928e1dc1d61d73
parent9fcbd14e7aa32e40e58167e93baac1c41128e5b6 (diff)
downloadgvfs-28e06fb0a88da987aa91becc360d4b347c19248a.tar.gz
dnssd: Use only one daemon process
The dnssd backend was designed to run under one common daemon process, however, new daemon is always spawn for each host (i.e. backend) currently. Set common dbus mountpoint in order to use one daemon process for all backends. https://bugzilla.gnome.org/show_bug.cgi?id=631023
-rw-r--r--daemon/Makefile.am1
-rw-r--r--daemon/dns-sd.mount.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index e458e5c3..79c622f9 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -396,6 +396,7 @@ gvfsd_dnssd_SOURCES = \
gvfsd_dnssd_CPPFLAGS = \
$(flags) \
-DBACKEND_HEADER=gvfsbackenddnssd.h \
+ -DMOUNTABLE_DBUS_NAME=org.gtk.vfs.mountpoint_dnssd \
-DDEFAULT_BACKEND_TYPE=dns-sd \
-DMAX_JOB_THREADS=1 \
$(AVAHI_CFLAGS) \
diff --git a/daemon/dns-sd.mount.in b/daemon/dns-sd.mount.in
index 1224ae69..af09ca94 100644
--- a/daemon/dns-sd.mount.in
+++ b/daemon/dns-sd.mount.in
@@ -2,3 +2,4 @@
Type=dns-sd
Exec=@libexecdir@/gvfsd-dnssd
AutoMount=true
+DBusName=org.gtk.vfs.mountpoint_dnssd