From d4284c109d593fa1413a162734b3db5134c66d19 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 18 Oct 2025 04:25:40 +0900 Subject: 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 --- test/sandbox/case/device.nix | 2 +- test/sandbox/case/mapuid.nix | 2 +- test/sandbox/case/pdlike.nix | 2 +- test/sandbox/case/preset.nix | 2 +- test/sandbox/case/tty.nix | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/sandbox/case/device.nix b/test/sandbox/case/device.nix index a6de9b79..ee90aaca 100644 --- a/test/sandbox/case/device.nix +++ b/test/sandbox/case/device.nix @@ -46,7 +46,7 @@ in "WAYLAND_DISPLAY=wayland-0" "XDG_RUNTIME_DIR=/run/user/65534" "XDG_SESSION_CLASS=user" - "XDG_SESSION_TYPE=tty" + "XDG_SESSION_TYPE=wayland" ]; fs = fs "dead" { diff --git a/test/sandbox/case/mapuid.nix b/test/sandbox/case/mapuid.nix index d5072321..22a9a22c 100644 --- a/test/sandbox/case/mapuid.nix +++ b/test/sandbox/case/mapuid.nix @@ -54,7 +54,7 @@ in "WAYLAND_DISPLAY=wayland-0" "XDG_RUNTIME_DIR=/run/user/1000" "XDG_SESSION_CLASS=user" - "XDG_SESSION_TYPE=tty" + "XDG_SESSION_TYPE=wayland" ]; fs = fs "dead" { diff --git a/test/sandbox/case/pdlike.nix b/test/sandbox/case/pdlike.nix index b34c2b81..5bd2019c 100644 --- a/test/sandbox/case/pdlike.nix +++ b/test/sandbox/case/pdlike.nix @@ -54,7 +54,7 @@ in "WAYLAND_DISPLAY=wayland-0" "XDG_RUNTIME_DIR=/run/user/65534" "XDG_SESSION_CLASS=user" - "XDG_SESSION_TYPE=tty" + "XDG_SESSION_TYPE=wayland" ]; fs = fs "dead" { diff --git a/test/sandbox/case/preset.nix b/test/sandbox/case/preset.nix index e6594b34..88ed54ba 100644 --- a/test/sandbox/case/preset.nix +++ b/test/sandbox/case/preset.nix @@ -54,7 +54,7 @@ in "WAYLAND_DISPLAY=wayland-0" "XDG_RUNTIME_DIR=/run/user/65534" "XDG_SESSION_CLASS=user" - "XDG_SESSION_TYPE=tty" + "XDG_SESSION_TYPE=wayland" ]; fs = fs "dead" { diff --git a/test/sandbox/case/tty.nix b/test/sandbox/case/tty.nix index 5ee7f643..de9e753c 100644 --- a/test/sandbox/case/tty.nix +++ b/test/sandbox/case/tty.nix @@ -55,7 +55,7 @@ in "WAYLAND_DISPLAY=wayland-0" "XDG_RUNTIME_DIR=/run/user/65534" "XDG_SESSION_CLASS=user" - "XDG_SESSION_TYPE=tty" + "XDG_SESSION_TYPE=wayland" ]; fs = fs "dead" { -- cgit v1.3.1