summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2023-05-14 13:16:36 +0200
committerMichael Albinus <michael.albinus@gmx.de>2023-05-14 13:16:36 +0200
commitad8a17e1bfd77d3107c16a53d47794194cbf2750 (patch)
tree0c0ebb6ec4df4b808326b2ecd81ec68ed4bd3de2
parenta7dcc0d55c641d3a16ed64528e726fb297726cbf (diff)
downloademacs-ad8a17e1bfd77d3107c16a53d47794194cbf2750.tar.gz
* lisp/net/tramp-gvfs.el (initialize): Ignore D-Bus errors.
-rw-r--r--lisp/net/tramp-gvfs.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index e3b42acfed5..e214d610c91 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -2537,7 +2537,8 @@ This uses \"avahi-browse\" in case D-Bus is not enabled in Avahi."
(let ((tramp-verbose 0)
tramp-gvfs-dbus-event-vector fun)
(when (and (autoload 'zeroconf-init "zeroconf")
- (tramp-compat-funcall 'dbus-get-unique-name :system))
+ (ignore-error dbus-error
+ (tramp-compat-funcall 'dbus-get-unique-name :system)))
;; Add completion functions for services announced by DNS-SD.
;; See <http://www.dns-sd.org/ServiceTypes.html> for valid service types.
(zeroconf-init tramp-gvfs-zeroconf-domain)