Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using Debian Wheezy with Xfce and Thunar. Thunar (and other similer managers) enables e.g. connecting to SSH server using SFTP address like sftp://mysvr/ and browsing it like a local folder. I normally access my remote box via command line, but occasionally I appreciate this GUI sugar.

However, in default configuration, this has a pretty annoying downside: File systems accessed this way are automatically mounted under folder $HOME/.gvfs, which creates quite a nightmare for tasks that involve traversing through home folder (typically dotfile searching, or analyzing disk space usage issues).

GNOME 2.2 RNs say:

GVFS also offers a FUSE mountpoint in ~/.gvfs/ so that GVFS mounts can be exposed to legacy applications using standard POSIX IO.

So I guess it's possible to turn this off (I assume by legacy they don't mean Nautilus and the likes).

However, I can't seem to find any information on how to do it. Any pointers?

share|improve this question
2  
The -x option to du will solve your analyzing disk space usage problem. –  jordanm Mar 14 '13 at 19:14

1 Answer 1

up vote 3 down vote accepted

Gvfsd(1) states:

ENVIRONMENT
       GVFS_DISABLE_FUSE
           If this environment variable is set, gvfsd will not start the fuse
           filesystem.

So if you configure your display manager or ~/.profile to set this variable it should work.

On the other hand most unix utilities have switches to disable recursion into other filesystems (mostly -x, for find it's -xdev)

share|improve this answer
    
Thanks, I'm almost embarrassed I did not know about this -x switch. –  Alois Mahdal Mar 15 '13 at 19:54
    
Also, before I get to test this, wouldn't this disable the whole feature (using FTPS in managers directly)? –  Alois Mahdal Mar 15 '13 at 19:55
    
The variable should only disable ~/.gfvs. Access via GIO should still work. Or do you mean -x? Then I didn't understand your comment. –  t-8ch Mar 15 '13 at 20:45
    
No, you understood correctly. I see it's exactly what I was looking for. Thank you. –  Alois Mahdal Mar 15 '13 at 21:10
    
Finally made it work, thanks. Just one more question: Where did you get the manual? It's not on my box, and I can't even find any official documentation... –  Alois Mahdal Mar 17 '13 at 1:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.