aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox
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 /test/sandbox
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 'test/sandbox')
-rw-r--r--test/sandbox/case/device.nix2
-rw-r--r--test/sandbox/case/mapuid.nix2
-rw-r--r--test/sandbox/case/pdlike.nix2
-rw-r--r--test/sandbox/case/preset.nix2
-rw-r--r--test/sandbox/case/tty.nix2
5 files changed, 5 insertions, 5 deletions
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" {