LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Small tip for .gvfs haters (http://www.linuxquestions.org/questions/slackware-14/small-tip-for-gvfs-haters-4175447869/)

Didier Spaier 01-30-2013 01:21 PM

Small tip for .gvfs haters
 
I did notice that the presence in my $HOME of a directory called .gvfs prevents to cleanly mirror it with rsync. This occurs in some situations if the gvfs package (which is included in Slackware) is installed.

After a little googling it seems to be a fuse file system that can't be read nor removed by root, at least with the initial Slackware settings.

I have seen proposals for setting or updating udev rules to avoid that situation but the simplest IMHO is to unmount then delete it. I do that just before I launch rsync. As root:
Code:

umount /home/didier/.gvfs && rm -rf /home/didier/.gvfs
Maybe there are security concerns in doing that, so if you are aware of any please answer this post.

unSpawn 01-30-2013 01:32 PM

Why not just --exclude it?

Didier Spaier 01-30-2013 01:48 PM

Quote:

Originally Posted by unSpawn (Post 4880833)
Why not just --exclude it?

Because it usually takes me a lot of time to find a simple solution to a problem :^)

So thanks for the suggestion, I will do that from now on.

unSpawn 01-30-2013 01:50 PM

Quote:

Originally Posted by Didier Spaier (Post 4880841)
Because it usually takes me a lot of time to find a simple solution to a problem

Heh, I know exactly how that works :-]

GazL 01-30-2013 01:53 PM

Code:

GVFS_DISABLE_FUSE=1 ; export GVFS_DISABLE_FUSE
I added the above to my .xinitrc. (it needs to be set before dbus-launch is called to be effective.

qweasd 01-30-2013 06:36 PM

What is this folder useful for? What triggers the mount?

the_penguinator 01-30-2013 07:18 PM

Quote:

Originally Posted by GazL (Post 4880848)
Code:

GVFS_DISABLE_FUSE=1 ; export GVFS_DISABLE_FUSE
I added the above to my .xinitrc. (it needs to be set before dbus-launch is called to be effective.

thanks for that...gotta say I was more than a little perturbed when I, as root, saw a directory with "permissions" -such as they were- that I could not nuke...

GazL 01-31-2013 04:39 AM

Quote:

Originally Posted by qweasd (Post 4880970)
What is this folder useful for? What triggers the mount?

http://en.wikipedia.org/wiki/Gvfs


Until I disabled it, it was generally thunar that would trigger this, though I guess any apps that use the gnome file selector dialog would also trigger it.

fogpipe 01-31-2013 05:14 AM

I guess im not running any gnome compatible apps that use it. rm -rf seems to have deleted it.


All times are GMT -5. The time now is 02:49 AM.