The location that SMB shares get mounted by
gvfs can be very distro specific or GNOME specific (GNOME2 vs. GNOME3). The locations are often
$HOME/.gvfs in older versions but in newer versions of
gvfs the location has changed to
If you're ever questioning where this directory is on a given system then use the
mount command to find out where
gvfs is mounting things.
$ mount |& grep -i gvfs
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
NOTE: On my system (Fedora 19) my userid is 1000.
$ id -u
Is gvfs running?
$HOME/.gvfs may in fact be the correct directory. Check to make sure that the daemon is running.
$ ps -eaf|grep gvfs
saml 1724 1 0 Jan11 ? 00:00:02 /usr/libexec/gvfsd
saml 1728 1 0 Jan11 ? 00:00:02 /usr/libexec//gvfsd-fuse -f /run/user/1000/gvfs
If a process like this is running and the directory is empty, then the issue is there aren't any SMB shares currently mounted.
Use this Python script
I found this mehtod which you could use to locate the directory corresponding to a given
smb:// path to a server + share.
Create the following script, updating the
uri so that points to an actual URI that you're attempting to access. I called the script
from gi.repository import Gio
Make it executable and run it.
$ chmod +x gvio_gvfs.py