From 28e06fb0a88da987aa91becc360d4b347c19248a Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Thu, 13 Oct 2016 11:40:02 +0200 Subject: 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 --- daemon/Makefile.am | 1 + daemon/dns-sd.mount.in | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.2.1