summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/emacs/tramp-detect-wrapped-gvfsd.patch
AgeCommit message (Collapse)Author
2020-08-11emacs: 26.3 -> 27.1adisbladis
2019-01-10emacs: tramp: detect wrapped gvfsd-fuse daemonOlli Helenius
Tramp checks for a running `gvfsd-fuse` process to figure out whether to enable gvfs-based. Its `tramp-compat-process-running-p` function uses `/proc/<pid>/comm` to check for the name of running process(es). In Nix, the gvfsd processes are launched via wrappers and the name of `gvfsd-fuse` in `comm` in Linux is `.gvfsd-fuse-wra` (truncated to 15 characters) which means the process is not detected and `tramp-gvfs-enabled` ends up with `nil` even when gvfs is available. This patch adds `.gvfsd-fuse-wrapped` to the list of process names to check when determining the value of `tramp-gvfs-enabled`.