app: improve WAYLAND_DISPLAY correctness
All checks were successful
Test / Create distribution (push) Successful in 46s
Test / Run NixOS test (push) Successful in 3m35s

This now has identical behaviour as wayland C library.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-15 14:45:09 +09:00
parent 3054527ca5
commit 268a90f1a5
6 changed files with 41 additions and 20 deletions

View File

@@ -267,7 +267,7 @@ var testCasesPd = []sealTestCase{
"SHELL": "/run/current-system/sw/bin/zsh",
"TERM": "xterm-256color",
"USER": "chronos",
"WAYLAND_DISPLAY": "/run/user/65534/wayland-0",
"WAYLAND_DISPLAY": "wayland-0",
"XDG_RUNTIME_DIR": "/run/user/65534",
"XDG_SESSION_CLASS": "user",
"XDG_SESSION_TYPE": "tty",