From daffed09551eef1d46a25a3ed83bef43ef31ebdb Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 10 Oct 2020 19:39:28 +0200 Subject: logind: Use seat_path for SwitchTo --- libseat/backend/logind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libseat/backend') diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c index 5afb77a..d6bbd94 100644 --- a/libseat/backend/logind.c +++ b/libseat/backend/logind.c @@ -164,7 +164,7 @@ static int switch_session(struct libseat *base, int s) { sd_bus_error error = SD_BUS_ERROR_NULL; int ret = sd_bus_call_method(session->bus, "org.freedesktop.login1", - "/org/freedesktop/login1/seat/seat0", + session->seat_path, "org.freedesktop.login1.Seat", "SwitchTo", &error, &msg, "u", (uint32_t)s); if (ret < 0) { -- cgit v1.2.3