diff options
| author | Michael Albinus | 2009-08-25 10:26:16 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-08-25 10:26:16 +0000 |
| commit | 0b35b48e669bea042d07ceda09e029be5e9ff3f0 (patch) | |
| tree | 390f3eb2128e872f21c235712836136d7039bb8f /lisp/net | |
| parent | 93fb0645d6ab5d42f9cf6943b476f44ad0d0ae82 (diff) | |
| download | emacs-0b35b48e669bea042d07ceda09e029be5e9ff3f0.tar.gz emacs-0b35b48e669bea042d07ceda09e029be5e9ff3f0.zip | |
* net/tramp-gvfs.el (top): Use timeout of 100 msec pinging GVFS
daemon. Replace ping by checking for running service for bluez
and zeroconf. (Bug#4239)
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 3091197cad8..8ef65459cb7 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -144,7 +144,7 @@ | |||
| 144 | "The well known name of the GVFS daemon.") | 144 | "The well known name of the GVFS daemon.") |
| 145 | 145 | ||
| 146 | ;; Check that GVFS is available. | 146 | ;; Check that GVFS is available. |
| 147 | (unless (dbus-ping :session tramp-gvfs-service-daemon) | 147 | (unless (dbus-ping :session tramp-gvfs-service-daemon 100) |
| 148 | (throw 'tramp-loading nil)) | 148 | (throw 'tramp-loading nil)) |
| 149 | 149 | ||
| 150 | (defconst tramp-gvfs-path-mounttracker "/org/gtk/vfs/mounttracker" | 150 | (defconst tramp-gvfs-path-mounttracker "/org/gtk/vfs/mounttracker" |
| @@ -1177,7 +1177,7 @@ be used." | |||
| 1177 | (tramp-bluez-list-devices))) | 1177 | (tramp-bluez-list-devices))) |
| 1178 | 1178 | ||
| 1179 | ;; Add completion function for OBEX method. | 1179 | ;; Add completion function for OBEX method. |
| 1180 | (when (dbus-ping :system tramp-bluez-service) | 1180 | (when (member tramp-bluez-service (dbus-list-known-names :system)) |
| 1181 | (tramp-set-completion-function | 1181 | (tramp-set-completion-function |
| 1182 | "obex" '((tramp-bluez-parse-device-names "")))) | 1182 | "obex" '((tramp-bluez-parse-device-names "")))) |
| 1183 | 1183 | ||
| @@ -1210,7 +1210,7 @@ be used." | |||
| 1210 | (zeroconf-list-services "_webdav._tcp"))) | 1210 | (zeroconf-list-services "_webdav._tcp"))) |
| 1211 | 1211 | ||
| 1212 | ;; Add completion function for DAV and DAVS methods. | 1212 | ;; Add completion function for DAV and DAVS methods. |
| 1213 | (when (dbus-ping :system zeroconf-service-avahi) | 1213 | (when (member zeroconf-service-avahi (dbus-list-known-names :system)) |
| 1214 | (zeroconf-init tramp-gvfs-zeroconf-domain) | 1214 | (zeroconf-init tramp-gvfs-zeroconf-domain) |
| 1215 | (tramp-set-completion-function | 1215 | (tramp-set-completion-function |
| 1216 | "sftp" '((tramp-zeroconf-parse-workstation-device-names ""))) | 1216 | "sftp" '((tramp-zeroconf-parse-workstation-device-names ""))) |