diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-10 20:39:06 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-10 20:47:30 +0900 |
| commit | 560cb626a1a8f7d4bfca5d30f262cc90fb5d4608 (patch) | |
| tree | 0be44e6cf70bae8b608b6a12efc06d66d1f2e5d9 /internal/system/wayland.go | |
| parent | c33a6a5b7ee130370aeeebf6635977415115f7da (diff) | |
hst: remove enablement json adapter
The go116 behaviour of built-in new function makes this cleaner.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/wayland.go')
| -rw-r--r-- | internal/system/wayland.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/system/wayland.go b/internal/system/wayland.go index ada91167..c22c3fdf 100644 --- a/internal/system/wayland.go +++ b/internal/system/wayland.go @@ -11,8 +11,9 @@ import ( ) // Wayland maintains a wayland socket with security-context-v1 attached via [wayland]. -// The socket stops accepting connections once the pipe referred to by sync is closed. -// The socket is pathname only and is destroyed on revert. +// +// The socket stops accepting connections once the pipe referred to by sync is +// closed. The socket is pathname only and is destroyed on revert. func (sys *I) Wayland(dst, src *check.Absolute, appID, instanceID string) *I { sys.ops = append(sys.ops, &waylandOp{nil, dst, src, appID, instanceID}) @@ -26,7 +27,7 @@ type waylandOp struct { appID, instanceID string } -func (w *waylandOp) Type() hst.Enablement { return Process } +func (w *waylandOp) Type() hst.Enablements { return Process } func (w *waylandOp) apply(sys *I) (err error) { if w.ctx, err = sys.waylandNew(w.src, w.dst, w.appID, w.instanceID); err != nil { |
