summaryrefslogtreecommitdiff
path: root/daemon/daemon-main-generic.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-10-11 23:18:02 +0200
committerAlexander Larsson <alexl@redhat.com>2012-10-11 23:18:02 +0200
commit79a53dc1b86b35dfbeb377e13f760d6817f7597b (patch)
tree0722ac7c8cb9f7e2f5d7b7282f177cd1b0347bf0 /daemon/daemon-main-generic.c
parentbaa03b1333cf83cbb9618e0bebd8038df8cc50b2 (diff)
downloadgvfs-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.c3
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 ();