Commit 819d3c3d authored by Jiří Klimeš's avatar Jiří Klimeš

settings: call dispatcher when setting hostname with systemd

Now that we set hostname with systemd, call dispatcher in nm-settings.c.
gethostname() in nm-policy.c already sees the new hostname.

Fixes: 6dc35e66
Fixes: 6c3d71c4
Fixes:Beaker:NetworkManager_Test44_dispatcher_hostname
parent 924117c1
......@@ -76,6 +76,7 @@
#include "nm-connection-provider.h"
#include "nm-config.h"
#include "NetworkManagerUtils.h"
#include "nm-dispatcher.h"
#define LOG(level, ...) \
G_STMT_START { \
......@@ -2093,6 +2094,7 @@ hostnamed_properties_changed (GDBusProxy *proxy,
g_free (priv->hostname.value);
priv->hostname.value = g_strdup (hostname);
g_object_notify (G_OBJECT (user_data), NM_SETTINGS_HOSTNAME);
nm_dispatcher_call (DISPATCHER_ACTION_HOSTNAME, NULL, NULL, NULL, NULL, NULL);
}
g_variant_unref (v_hostname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment