You are not logged in.

#1 2023-03-20 20:14:52

wkd
Member
Registered: 2016-04-04
Posts: 23

[SOLVED] GVFS suddenly mounting to $HOME/.gvfs instead of /run/user

Today I noticed that GVFS created a mount point in my home directory instead of the usual /run/user/UID/gvfs. Basically I want to go back to having my fuse mounts in /run/user/UID as I think it's both cleaner and safer.
The documentation for the fuse daemon states:

The default mount point is /run/user/<UID>/gvfs, usually located on tmpfs, with a fallback to the old location ~/.gvfs when not available.

First I ran mount to check if that was mounted correctly and it was:

tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1628528k,nr_inodes=407132,mode=700,uid=1000,gid=100,inode64)

So this is definitely available and I can see that other software like pipewire actually makes use of it.

Unfortunately gvfs doesn't really provide any useful output. The documentation does have info on how to run it in debug mode however. So I followed that but it didn't give me anything useful. Just to be safe I uninstalled gvfs entirely, rebooted and reinstalled it to then get a fresh log of it firing up but no joy. No errors, failures or warnings whatsoever. It immediately created the .gvfs directory in home again however without logging it. I then mounted some smb shares just to make sure logging was actually working and it was, But again nothing relevant.

I can't really find much information on any configuration of either gvfs or fuse so I'm at wit's end. If anybody could point me in the right direction that woud be very much appreciated.

Last edited by wkd (2023-03-20 21:59:19)

Offline

#2 2023-03-20 21:12:45

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GVFS suddenly mounting to $HOME/.gvfs instead of /run/user

https://man.archlinux.org/man/gvfsd-fuse.1.en

ps aux | grep gvfs
echo $XDG_RUNTIME_DIR

Online

#3 2023-03-20 21:59:02

wkd
Member
Registered: 2016-04-04
Posts: 23

Re: [SOLVED] GVFS suddenly mounting to $HOME/.gvfs instead of /run/user

Thanks a bunch. Manually setting XDG_RUNTIME_DIR to /run/user/UID did the trick. Not sure how my environment variables got messed up in the first place but I'll do some spelunking and figure it out.

Offline

#4 2023-03-21 07:46:31

seth
Member
Registered: 2012-09-03
Posts: 50,008

Re: [SOLVED] GVFS suddenly mounting to $HOME/.gvfs instead of /run/user

How do you start the session?
startx/xinit?
See the last link below.

Online

#5 2023-03-21 08:37:47

wkd
Member
Registered: 2016-04-04
Posts: 23

Re: [SOLVED] GVFS suddenly mounting to $HOME/.gvfs instead of /run/user

I ended up finding it. In an effort to clean up my home directory I added most of the XDG base directories into my shell profile a while back and apparently fat fingered the location of XDG_RUNTIME_DIR.

Offline

Board footer

Powered by FluxBB