logind: Allow SwitchTo for all seats
This commit is contained in:
parent
0fd525e85e
commit
7d2668e360
1 changed files with 4 additions and 9 deletions
|
@ -151,18 +151,13 @@ static int switch_session(struct libseat *base, int s) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
// Only seat0 has VTs associated with it
|
||||
if (strcmp(session->seat, "seat0") != 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int ret;
|
||||
sd_bus_message *msg = NULL;
|
||||
sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
|
||||
ret = sd_bus_call_method(session->bus, "org.freedesktop.login1",
|
||||
"/org/freedesktop/login1/seat/seat0", "org.freedesktop.login1.Seat",
|
||||
"SwitchTo", &error, &msg, "u", (uint32_t)s);
|
||||
int ret = sd_bus_call_method(session->bus, "org.freedesktop.login1",
|
||||
"/org/freedesktop/login1/seat/seat0",
|
||||
"org.freedesktop.login1.Seat", "SwitchTo", &error, &msg, "u",
|
||||
(uint32_t)s);
|
||||
|
||||
sd_bus_error_free(&error);
|
||||
sd_bus_message_unref(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue