sleep: convert a home1.Manager call to BusLocator

This commit is contained in:
David Tardon
2023-05-23 20:28:55 +02:00
parent 6ce68c7c51
commit a29f13f296

View File

@@ -147,13 +147,7 @@ static int lock_all_homes(void) {
if (r < 0)
return log_warning_errno(r, "Failed to connect to system bus, ignoring: %m");
r = sd_bus_message_new_method_call(
bus,
&m,
"org.freedesktop.home1",
"/org/freedesktop/home1",
"org.freedesktop.home1.Manager",
"LockAllHomes");
r = bus_message_new_method_call(bus, &m, bus_home_mgr, "LockAllHomes");
if (r < 0)
return bus_log_create_error(r);