From 103a0a5c5631679b308acc6981041c12e0cde1c8 Mon Sep 17 00:00:00 2001 From: Andre Wagner Date: Thu, 16 Apr 2026 13:38:40 +0200 Subject: [PATCH] Make seat configurable via XDG_SEAT --- seat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seat.c b/seat.c index 5f659a4..de2b22a 100644 --- a/seat.c +++ b/seat.c @@ -816,9 +816,10 @@ seat_create(struct cg_server *server, struct wlr_backend *backend) return NULL; } - seat->seat = wlr_seat_create(server->wl_display, "seat0"); + const char *seat_name = getenv("XDG_SEAT") ?: "seat0"; + seat->seat = wlr_seat_create(server.wl_display, seat_name); if (!seat->seat) { - wlr_log(WLR_ERROR, "Cannot allocate seat0"); + wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name); free(seat); return NULL; }