From 92b83bd599adf085c1a2a9c73eeb6b6dc1eee6e4 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 5 Oct 2025 03:31:43 +0900 Subject: internal/app: apply pd behaviour to outcomeState This avoids needlessly clobbering hst.Config. Signed-off-by: Ophestra --- internal/app/spx11.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/app/spx11.go') diff --git a/internal/app/spx11.go b/internal/app/spx11.go index 2e515cd4..0d287e05 100644 --- a/internal/app/spx11.go +++ b/internal/app/spx11.go @@ -20,7 +20,7 @@ type spX11Op struct { Display string } -func (s *spX11Op) toSystem(state *outcomeStateSys, config *hst.Config) error { +func (s *spX11Op) toSystem(state *outcomeStateSys, _ *hst.Config) error { if d, ok := state.k.lookupEnv("DISPLAY"); !ok { return newWithMessage("DISPLAY is not set") } else { @@ -46,7 +46,7 @@ func (s *spX11Op) toSystem(state *outcomeStateSys, config *hst.Config) error { } } else { state.sys.UpdatePermType(hst.EX11, socketPath, acl.Read, acl.Write, acl.Execute) - if !config.Container.HostAbstract { + if !state.Container.HostAbstract { s.Display = "unix:" + socketPath.String() } } -- cgit v1.3.1