Getting debug logs
- Terminate all gvfs daemons and the client application you use (e.g. Nautilus) at first:
pkill gvfs; pkill nautilus
(Be careful, this step will terminate also your pending file operations.)
- Start main daemon with enabled debug output:
GVFS_DEBUG=1 $(find /usr/lib* -name gvfsd 2>/dev/null) --replace 2>&1 | tee gvfsd.log
You can use additional environment variables in special cases.
- Reproduce your problem.
- Terminate gvfs daemons after that.
You can attach gvfsd.log to a bug report.
Testing custom build
It is a bit cumbersome given the fact that GVfs consist of multiple D-Bus services, shared libraries and GIO modules. There is several options with different pros and cons:
If you want to test only some changes of backend, the easiest way is to run the necessary bits manually. You can run just the modified backend as described in #Spawning_backends_manually section, or you can run the main daemon manually from the prefix as described in #Getting_debug_logs section. If you run the main daemon, it automatically uses backends from the prefix also. Unfortunately, volume monitors and client codes are still used from system. This is not usually problem if you haven't modified them. But still you can start the requested monitor manually. If you have made also some changes in client codes I strongly recommend to use another approach.
(This may not work if you test different version than it is in system.)
- Modify package for your distribution.
(This requires packaging knowledge.)
- Install GVfs in system paths.
(This conflicts with system packages.)
Setup GNOME JHBuild session with custom D-Bus services dir, or use custom D-Bus config file to see services from the prefix.
(This requires system knowledge, big amount of time and luck to build whole JHBuild moduleset.)
Spawning backends manually
This is just for debugging purposes, use gio mount if you need mounting from commandline!
Before spawning a backend manually, you have just to be sure that potential credentials are already saved in the keyring, otherwise the backend fails without prompting. You can do this e.g. over Nautilus thanks to "Remember password until you logout", or "Remember forever" options. You can also use environment variables mentioned in #Getting_debug_logs section.
[type=TYPE] [user=USER] [host=HOST] [port=PORT] [prefix=PREFIX]
Some backends has custom options:
./gvfsd-afp [volume=VOLUME] ... ./gvfsd-dav [ssl=true|false] ... ./gvfsd-http uri=[URI] ./gvfsd-smb [domain=DOMAIN] [user=USER] server=[SERVER] [port=PORT] share=[SHARE]
./gvfsd-dav ssl=true user=foo host=my.owndrive.com prefix=/remote.php/webdav
(This doesn't work for accounts configured over "Online Accounts".)
./gvfsd-google user=foo host=gmail.com
(email@example.com has to be configured over "Online Accounts".)
./gvfsd-sftp host=localhost user=foo