From a7e0e6231123b09f717f43ea4064e062b3440223 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 13 May 2010 10:52:07 -0700 Subject: [PATCH] core: tell GIO to use local implementation (rh #588745) GIO will apparently normally try to use the remote VFS implemenation on the session bus. But NM (as a root service) shouldn't ever be trying to talk to anything on the session bus. Squash that. --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 1d0ab5328c..f76cea9473 100644 --- a/src/main.c +++ b/src/main.c @@ -503,6 +503,12 @@ main (int argc, char *argv[]) exit (1); } + /* 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); + pidfile = pidfile ? pidfile : g_strdup (NM_DEFAULT_PID_FILE); state_file = state_file ? state_file : g_strdup (NM_DEFAULT_SYSTEM_STATE_FILE);