Hi!
When I plugin my usb drive then I have a strange mount point in my home folder of GVFS.
/home/user/"/run/user/1000"/gvfs
/home/user/"/run/user/1000"
How can I restore/revert back to default to:
/run/user/999/gvfs
/run/user/1000/gvfs
?
Please help, thanks!
also have empty folders and files in:
/run/user/1000
it's mounted here 
/home/user/"/run/user/1000"
Need help to restore default path in
/run/user/1000
Which file must I edit to change the path of /home/user/"/run/user/1000
to
> /run/user/1000 ?
Please show the output of mount | grep gvfs
command.
What do you have for below commands? ↓
ls -al /home/$USER/"/run/$USER/1000"/gvfs
ls -ald ~/.gvfs
Maybe it should be written as
ls -al /home/$USER/\"/run/$USER/1000\"/gvfs
what is the output?
Output of:
ls -al /home/$USER/"/run/$USER/1000"/gvfs
ls: cannot access '/home/user/"/run/user"/gvfs': No such file or directory
The path of gvfs is: (looked into caja)
/home/user/"/run/user/1000"/gvfs
but:
ls -al /home/user/"/run/user/1000"/gvfs
gives me:
ls: cannot access '/home/user//run/user/1000/gvfs': No such file or directory
So we can't do anything with this GVFS file/folder using its operating system.
Then I would recommend to boot computer from LiveCD/DVD/USB, mount home folder, ensure that needed GVFS file/folder is empty and then remove it using Caja with Administrative rights. Finally reboot to normal system and check results.
I have just entered
printenv XDG_RUNTIME_DIR
to see if paths are set correctly.
it's:
XDG_RUNTIME_DIR="/run/user/1000"
not default:
XDG_RUNTIME_DIR=/run/user/1000
printenv SSH_AUTH_SOCK
it's:
SSH_AUTH_SOCK="/run/user/1000"/keyring/ssh
not default:
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
how to revert back to?
XDG_RUNTIME_DIR=/run/user/1000
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
/etc/X11/Xsession.d/20dbus_xdg-runtime
is:
vim:set ft=sh sw=2 sts=2 et:
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -n "$XDG_RUNTIME_DIR" ] &&
[ "$XDG_RUNTIME_DIR" = "/run/user/id -u
" ] &&
[ -S "$XDG_RUNTIME_DIR/bus" ]; then
DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
export DBUS_SESSION_BUS_ADDRESS
fi
if [ -x "/usr/bin/dbus-update-activation-environment" ]; then
dbus-update-activation-environment --verbose --systemd
DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
fi
maybee something wrong with this above?
Which file must be edited to
change "XDG_RUNTIME_DIR / SSH_AUTH_SOCK" path? (Environment)
wrong path in "/etc/security/pam_env.conf" was set.
Removed line:
XDG_RUNTIME_DIR="/run/user/1000"
Rebooted.
printenv XDG_RUNTIME_DIR
Now, it's back to path: XDG_RUNTIME_DIR=/run/user/1000
wrong line was:
"/run/user/1000"
gvfs is also back to /run/user/1000/gvfs
S O L U T I O N 
1 Like
It finally helped me to delete all ~/.local/share/gvfs-metadata/ftp:host=..... in the home directory.
Just to be sure, check if you have gvfs-fuse installed, which I probably accidentally deleted.
I didn't do any of the advice above!
1 Like
Welcome @Radek_Neuzil to the community!