From 4ff7eeeaae101bd415b8cb318a5b536ecdaebba9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 14 Jun 2013 13:26:28 -0400 Subject: [PATCH] main: setenv(GIO_USE_VFS=local) *very* early See https://bugzilla.gnome.org/show_bug.cgi?id=701322 for why we should order calls to setenv() as early as possible. --- src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 67be160b4f..dcfdae352a 100644 --- a/src/main.c +++ b/src/main.c @@ -333,6 +333,12 @@ main (int argc, char *argv[]) {NULL} }; + /* Make GIO ignore the remote VFS service; otherwise it tries to use the + * session bus to contact the remote service, and NM shouldn't ever be + * talking on the session bus. See rh #588745 + */ + setenv ("GIO_USE_VFS", "local", 1); + if (!g_module_supported ()) { fprintf (stderr, _("GModules are not supported on your platform!\n")); exit (1); @@ -398,12 +404,6 @@ main (int argc, char *argv[]) g_free (path); } - /* Make GIO ignore the remote VFS service; otherwise it tries to use the - * session bus to contact the remote service, and NM shouldn't ever be - * talking on the session bus. See rh #588745 - */ - setenv ("GIO_USE_VFS", "local", 1); - /* Setup runtime directory */ if (g_mkdir_with_parents (NMRUNDIR, 0755) != 0) { nm_log_err (LOGD_CORE, "Cannot create '%s': %s", NMRUNDIR, strerror (errno));