From 103a0a5c5631679b308acc6981041c12e0cde1c8 Mon Sep 17 00:00:00 2001 From: Andre Wagner Date: Thu, 16 Apr 2026 13:38:40 +0200 Subject: [PATCH 1/2] 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; } From 9d8ec5983a3bdaebf66ee4f0b3a81480c73c3810 Mon Sep 17 00:00:00 2001 From: Andre Wagner Date: Fri, 17 Apr 2026 10:04:50 +0200 Subject: [PATCH 2/2] Use CAGE_SEAT since it is not directly bound to XDG_SEAT --- seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seat.c b/seat.c index de2b22a..62b15ac 100644 --- a/seat.c +++ b/seat.c @@ -816,7 +816,7 @@ seat_create(struct cg_server *server, struct wlr_backend *backend) return NULL; } - const char *seat_name = getenv("XDG_SEAT") ?: "seat0"; + const char *seat_name = getenv("CAGE_SEAT") ?: "seat0"; seat->seat = wlr_seat_create(server.wl_display, seat_name); if (!seat->seat) { wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name);