mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-05-17 21:42:17 -04:00
Use CAGE_SEAT since it is not directly bound to XDG_SEAT
This commit is contained in:
parent
103a0a5c56
commit
9d8ec5983a
1 changed files with 1 additions and 1 deletions
2
seat.c
2
seat.c
|
|
@ -816,7 +816,7 @@ seat_create(struct cg_server *server, struct wlr_backend *backend)
|
||||||
return NULL;
|
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);
|
seat->seat = wlr_seat_create(server.wl_display, seat_name);
|
||||||
if (!seat->seat) {
|
if (!seat->seat) {
|
||||||
wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name);
|
wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue