diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-13 01:22:47 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-13 01:22:47 +0900 |
| commit | bf5d10743f82ea438b1a05939f55d8b0027e98b9 (patch) | |
| tree | 5d0294116c219ecce64af42adb2d17db8e6e116b /internal/outcome/spwayland.go | |
| parent | 4e7aab07d5b175345fdf3ea08868dab1e6d90126 (diff) | |
treewide: import internal/system
For #24.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spwayland.go')
| -rw-r--r-- | internal/outcome/spwayland.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/outcome/spwayland.go b/internal/outcome/spwayland.go index 54119de6..a57c3c0a 100644 --- a/internal/outcome/spwayland.go +++ b/internal/outcome/spwayland.go @@ -5,8 +5,8 @@ import ( "hakurei.app/container/check" "hakurei.app/hst" - "hakurei.app/system/acl" - "hakurei.app/system/wayland" + "hakurei.app/internal/system/acl" + "hakurei.app/internal/system/wayland" ) func init() { gob.Register(new(spWaylandOp)) } @@ -25,8 +25,8 @@ func (s *spWaylandOp) toSystem(state *outcomeStateSys) error { // outer wayland socket (usually `/run/user/%d/wayland-%d`) var socketPath *check.Absolute - if name, ok := state.k.lookupEnv(wayland.WaylandDisplay); !ok { - state.msg.Verbose(wayland.WaylandDisplay + " is not set, assuming " + wayland.FallbackName) + if name, ok := state.k.lookupEnv(wayland.Display); !ok { + state.msg.Verbose(wayland.Display + " is not set, assuming " + wayland.FallbackName) socketPath = state.sc.RuntimePath.Append(wayland.FallbackName) } else if a, err := check.NewAbs(name); err != nil { socketPath = state.sc.RuntimePath.Append(name) @@ -53,7 +53,7 @@ func (s *spWaylandOp) toSystem(state *outcomeStateSys) error { func (s *spWaylandOp) toContainer(state *outcomeStateParams) error { innerPath := state.runtimeDir.Append(wayland.FallbackName) - state.env[wayland.WaylandDisplay] = wayland.FallbackName + state.env[wayland.Display] = wayland.FallbackName if s.SocketPath == nil { state.params.Bind(state.instancePath().Append("wayland"), innerPath, 0) } else { |
