src: use nm_dbus_connection_call_start_service_by_name()
This commit is contained in:
@@ -305,18 +305,12 @@ send_updates (NMDnsSystemdResolved *self)
|
|||||||
_LOGT ("send-updates: no name owner. Try start service...");
|
_LOGT ("send-updates: no name owner. Try start service...");
|
||||||
priv->try_start_blocked = TRUE;
|
priv->try_start_blocked = TRUE;
|
||||||
|
|
||||||
g_dbus_connection_call (priv->dbus_connection,
|
nm_dbus_connection_call_start_service_by_name (priv->dbus_connection,
|
||||||
DBUS_SERVICE_DBUS,
|
SYSTEMD_RESOLVED_DBUS_SERVICE,
|
||||||
DBUS_PATH_DBUS,
|
-1,
|
||||||
DBUS_INTERFACE_DBUS,
|
NULL,
|
||||||
"StartServiceByName",
|
NULL,
|
||||||
g_variant_new ("(su)", SYSTEMD_RESOLVED_DBUS_SERVICE, 0u),
|
NULL);
|
||||||
G_VARIANT_TYPE ("(u)"),
|
|
||||||
G_DBUS_CALL_FLAGS_NONE,
|
|
||||||
-1,
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
NULL);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user