aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/xhost.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-09-29 06:32:15 +0900
committerOphestra <cat@gensokyo.uk>2025-09-29 06:34:29 +0900
commit44ba7a5f02b7575a706a22aac53c8ac608d18f23 (patch)
treec08890b09a42c38bdf24b976421704ce83a74fad /system/xhost.go
parentdc467493d8a1461ea321ccf5ca3a2b037f880088 (diff)
hst/enablement: move bits from system
This is part of the hst API, should not be in the implementation package. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/xhost.go')
-rw-r--r--system/xhost.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/xhost.go b/system/xhost.go
index e5ea2580..9a547f43 100644
--- a/system/xhost.go
+++ b/system/xhost.go
@@ -1,6 +1,7 @@
package system
import (
+ "hakurei.app/hst"
"hakurei.app/system/internal/xcb"
)
@@ -13,7 +14,7 @@ func (sys *I) ChangeHosts(username string) *I {
// xhostOp implements [I.ChangeHosts].
type xhostOp string
-func (x xhostOp) Type() Enablement { return EX11 }
+func (x xhostOp) Type() hst.Enablement { return hst.EX11 }
func (x xhostOp) apply(sys *I) error {
sys.msg.Verbosef("inserting entry %s to X11", x)