mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 17:00:29 +01:00
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.
This commit is contained in:
parent
32043b0036
commit
a7e0e62311
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue