logind: Use seat_path for SwitchTo

This commit is contained in:
Kenny Levinsen 2020-10-10 19:39:28 +02:00
parent 7bf91a5f9f
commit daffed0955

View file

@ -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) {