aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libseat/backend/logind.c2
1 files changed, 1 insertions, 1 deletions
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) {