aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_stub_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-25 01:52:49 +0900
committerOphestra <cat@gensokyo.uk>2025-03-25 01:52:49 +0900
commit5c4058d5ac7e7944973ca8216c258fc50c194e22 (patch)
treec06597903233c75eca5a1edae8b06d93f0f81774 /internal/app/app_stub_test.go
parente732dca7629edb503df0c65df5f37a99600d567d (diff)
app: run in native sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_stub_test.go')
-rw-r--r--internal/app/app_stub_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go
index be496177..665dfa04 100644
--- a/internal/app/app_stub_test.go
+++ b/internal/app/app_stub_test.go
@@ -55,10 +55,8 @@ func (s *stubNixOS) LookPath(file string) (string, error) {
}
switch file {
- case "sudo":
- return "/run/wrappers/bin/sudo", nil
- case "machinectl":
- return "/home/ophestra/.nix-profile/bin/machinectl", nil
+ case "zsh":
+ return "/run/current-system/sw/bin/zsh", nil
default:
panic(fmt.Sprintf("attempted to look up unexpected executable %q", file))
}