aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-18 04:25:40 +0900
committerOphestra <cat@gensokyo.uk>2025-10-18 04:33:04 +0900
commitd4284c109d593fa1413a162734b3db5134c66d19 (patch)
tree3cdab15c944ad4df19df609ce4c49a9d0d51296c /internal/app/app_test.go
parent030ad2a73bcbcafdc434771901cf6e8e659c00a6 (diff)
internal/app/spruntime: emulate pam_systemd type
This sets XDG_SESSION_TYPE to the corresponding values specified in pam_systemd(8) according to enablements. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
-rw-r--r--internal/app/app_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go
index acecf94d..96fe0b10 100644
--- a/internal/app/app_test.go
+++ b/internal/app/app_test.go
@@ -268,7 +268,7 @@ func TestApp(t *testing.T) {
"WAYLAND_DISPLAY=wayland-0",
"XDG_RUNTIME_DIR=/run/user/65534",
"XDG_SESSION_CLASS=user",
- "XDG_SESSION_TYPE=tty",
+ "XDG_SESSION_TYPE=wayland",
},
Ops: new(container.Ops).
Root(m("/"), bits.BindWritable).
@@ -420,7 +420,7 @@ func TestApp(t *testing.T) {
"WAYLAND_DISPLAY=wayland-0",
"XDG_RUNTIME_DIR=/run/user/1971",
"XDG_SESSION_CLASS=user",
- "XDG_SESSION_TYPE=tty",
+ "XDG_SESSION_TYPE=wayland",
},
Ops: new(container.Ops).
Proc(m("/proc/")).