diff --git a/plugins/hostname.c b/plugins/hostname.c index 4f9dfe6..1df1b4b 100644 --- a/plugins/hostname.c +++ b/plugins/hostname.c @@ -301,6 +301,10 @@ static int hostname_init(void) hostname_proxy = NULL; g_dbus_client_unref(hostname_client); hostname_client = NULL; + } else { + g_dbus_proxy_refresh_property(hostname_proxy, "PrettyHostname"); + g_dbus_proxy_refresh_property(hostname_proxy, "StaticHostname"); + g_dbus_proxy_refresh_property(hostname_proxy, "Chassis"); } return err;