On Fri, 24 Oct 2025 09:51:34 +0200 Michael Albinus <[email protected]> wrote:
> Stephen Berman <[email protected]> writes: > > Hi Stephen, > >> I've attached the compressed load histories from both Emacs >> sessions (load-history_1 from the first shell invocation, load-history_2 >> from the second one with `-l tramp'; I pretty-printed them for better >> legibility and diffing). > > I've checked the load-history you've sent, and I've compared it with my > load-history. No relevant differences. So it must be something > different. > > Could you pls apply the appended patch, and rerun your failing test, again? > > # src/emacs -Q --eval '(setq tramp-verbose 6)' > /sftp:[email protected]:/b/bermasbp/ > > There will be a (looong) Tramp debug buffer which I would like to see. Thanks for the patch, it made the cause of the failure clear (but I've attached the debug output anyway so you can double check). My running system has the following processes whose names match "gvfs.*": gvfs-udisks2-vo, gvfsd, gvfsd-trash, gvfsd-metadata. For all of these `tramp-process-running-p' returns nil under the current definition using `(eq t (compare-strings comm 0 15 process-name 0 15))' but under the previous definition using `(string-prefix-p comm process-name)' it returns t for `comm' "gvfsd" and `process-name' "gvfsd-fuse". Of course, it also returns t for `comm' "g", which was the reason for changing the definition of `tramp-process-running-p'. But it seems that gvfs does not need fuse to be able to mount a remote file system; at least on my system gvfs was built with `-D fuse=false'. So the following patch seems to be the simplest way to fix my problem:
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index c283c119b87..6d09d3d7494 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -123,7 +123,8 @@ tramp-gvfs-enabled
(and (featurep 'dbusbind)
(tramp-compat-funcall 'dbus-get-unique-name :session)
(or (tramp-process-running-p "gvfs-fuse-daemon")
- (tramp-process-running-p "gvfsd-fuse"))))
+ (tramp-process-running-p "gvfsd-fuse")
+ (tramp-process-running-p "gvfsd"))))
"Non-nil when GVFS is available.")
;;;###tramp-autoload
Or do you see a better way to fix it? Steve Berman
tramp-debug-bad.gz
Description: Binary data
