mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 05:50:12 +01:00
settings: fix loading of keyfile connections
Updating unmanaged specs may cause load_connections() to be called, and the keyfile plugin needs to be registered before that.
This commit is contained in:
parent
2e0fb2ae4e
commit
e2d297e5ff
1 changed files with 2 additions and 1 deletions
|
|
@ -1357,7 +1357,6 @@ nm_settings_new (const char *config_file,
|
|||
g_object_unref (self);
|
||||
return NULL;
|
||||
}
|
||||
unmanaged_specs_changed (NULL, self);
|
||||
}
|
||||
|
||||
/* Add the keyfile plugin last */
|
||||
|
|
@ -1365,6 +1364,8 @@ nm_settings_new (const char *config_file,
|
|||
g_assert (keyfile_plugin);
|
||||
add_plugin (self, NM_SYSTEM_CONFIG_INTERFACE (keyfile_plugin));
|
||||
|
||||
unmanaged_specs_changed (NULL, self);
|
||||
|
||||
dbus_g_connection_register_g_object (priv->bus, NM_DBUS_PATH_SETTINGS, G_OBJECT (self));
|
||||
return self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue