diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-10-11 23:18:02 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-10-11 23:18:02 +0200 |
commit | 79a53dc1b86b35dfbeb377e13f760d6817f7597b (patch) | |
tree | 0722ac7c8cb9f7e2f5d7b7282f177cd1b0347bf0 /daemon/daemon-main-generic.c | |
parent | baa03b1333cf83cbb9618e0bebd8038df8cc50b2 (diff) | |
download | gvfs-79a53dc1b86b35dfbeb377e13f760d6817f7597b.tar.gz |
Don't use gvfs in the daemons unless necessary
Most backends don't need gvfs support, although they
may use local GFiles. For these we enforce the use
of the local file GVfs implementation to avoid weird
complexity with backends depending on gvfs itself.
Diffstat (limited to 'daemon/daemon-main-generic.c')
-rw-r--r-- | daemon/daemon-main-generic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/daemon-main-generic.c b/daemon/daemon-main-generic.c index 30607520..dddfcffa 100644 --- a/daemon/daemon-main-generic.c +++ b/daemon/daemon-main-generic.c @@ -30,6 +30,9 @@ int main (int argc, char *argv[]) { +#ifndef BACKEND_USES_GVFS + g_setenv ("GIO_USE_VFS", "local", TRUE); +#endif daemon_init (); #ifdef BACKEND_SETUP_FUNC BACKEND_SETUP_FUNC (); |