aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-10-10 19:39:28 +0200
committerKenny Levinsen <kl@kl.wtf>2020-10-10 19:39:28 +0200
commitdaffed09551eef1d46a25a3ed83bef43ef31ebdb (patch)
treef7f2651014ff56c602c885696fa996cbeb190e6e /libseat/backend
parent7bf91a5f9fec57c798c1bb87ad6c2b71521f3188 (diff)
logind: Use seat_path for SwitchTo
Diffstat (limited to 'libseat/backend')
-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) {