Michael Albinus <michael.albi...@gmx.de> writes: > Björn Bidar <bjorn.bi...@thaodan.de> writes: > > Hi Björn, > >>>> While the usual expectation for Tramp with SSH or SFTP is to operate on >>>> remote, for SSHFS this is usually not the case. >>> >>> For sftp, no remote processes are supported. >> >> What doe SFTP have to do with this? Besides SFTP only works with GNOME >> or does it? > > You've mentioned SFTP. I just clarified, that Tramp's sftp > implementation doesn't offer remote processes.
Oh yes sorry yeah. I was thinking it would be possible to port KIO to Tramp so SFTP (and other methods) would work outside of GNOME systems. >>> If you want to run programs locally, mount the sshfs file system, and use >>> the files with their local names via the mountpoint. >> >> The manual states that it mounts the SSHFS file system, which it does. >> Since SSHFS either through Tramp or otherwise mounts the file system it >> should be possible to transform the tramp path to the locally mounted >> file system and call programs on it. > > Anything goes. But it isn't Tramp's job to call local processes. > >> If the user wants to run programs on the remote SSH would be the better >> method. > > No. People have reported, that the sshfs method provides better > performance, due to the sshfs mounting. That's why I've added this > method to Tramp. I was talking about calling a program on the remote not about accessing files. I'm aware that for accessing files SSHFS is faster. My point was that the SSHFS isn't used when calling processes for a user of tramp this makes sense of course but if one used sshfs before and then expects it to behave like it usually does outside of tramp then that's initially confusing. For other system with some kind of integration of remote file-systems such kio there is also some method to translate paths from one host to another. > >> I think the confusion or the issue is that programs called when using >> the tramp-sshfs method don't use sshfs. > > No confusion, Tramp is consistent. sshfs-mounted file systems don't > allow to call remote programs, that's why Tramp uses the ssh-based > remote calls. The Tramp manual mentions this in section "5.20.2 ‘sshfs’ > setup". Not for tramp being inconsistent by itself but for the usual usage of sshfs. I guess it's possible to just override the method to call processes for Tramp-SSHFS for my own setup. > Best regards, Michael. But yeah anyway it's ok. Thanks for explaining.