logind: Use seat_path for SwitchTo
This commit is contained in:
parent
7bf91a5f9f
commit
daffed0955
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue