diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-25 05:26:37 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-25 05:26:37 +0900 |
| commit | 61dbfeffe77df9c1a11413b3cb8954933e79b45f (patch) | |
| tree | 7f7f6bde9a8662848ad9392621316cbbc454a9f0 /sandbox/wl/consts.go | |
| parent | 532feb4bfaa84a57dc8de97f36b13a89610a0584 (diff) | |
sandbox/wl: move into sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/wl/consts.go')
| -rw-r--r-- | sandbox/wl/consts.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sandbox/wl/consts.go b/sandbox/wl/consts.go new file mode 100644 index 00000000..2ad4028c --- /dev/null +++ b/sandbox/wl/consts.go @@ -0,0 +1,15 @@ +package wl + +const ( + // WaylandDisplay contains the name of the server socket + // (https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.23.1/src/wayland-client.c#L1147) + // which is concatenated with XDG_RUNTIME_DIR + // (https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.23.1/src/wayland-client.c#L1171) + // or used as-is if absolute + // (https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.23.1/src/wayland-client.c#L1176). + WaylandDisplay = "WAYLAND_DISPLAY" + + // FallbackName is used as the wayland socket name if WAYLAND_DISPLAY is unset + // (https://gitlab.freedesktop.org/wayland/wayland/-/blob/1.23.1/src/wayland-client.c#L1149). + FallbackName = "wayland-0" +) |
