aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system/xhost.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-16 14:38:57 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-16 14:38:57 +0900
commitc21168a74181903535c63f49c5a6d3bd2052c883 (patch)
tree6ed272c6a4d3712624077cf39794d7d1eb22295f /internal/system/xhost.go
parent084cd84f36a1d608541b4aa4e1e95334395d8953 (diff)
system: move enablements from state package
This removes the unnecessary import of the state package. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/system/xhost.go')
-rw-r--r--internal/system/xhost.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/system/xhost.go b/internal/system/xhost.go
index 2cdddd56..40914756 100644
--- a/internal/system/xhost.go
+++ b/internal/system/xhost.go
@@ -4,7 +4,6 @@ import (
"fmt"
"git.ophivana.moe/cat/fortify/internal/fmsg"
- "git.ophivana.moe/cat/fortify/internal/state"
"git.ophivana.moe/cat/fortify/internal/verbose"
"git.ophivana.moe/cat/fortify/xcb"
)
@@ -19,8 +18,8 @@ func (sys *I) ChangeHosts(username string) {
type XHost string
-func (x XHost) Type() state.Enablement {
- return state.EnableX
+func (x XHost) Type() Enablement {
+ return EX11
}
func (x XHost) apply(_ *I) error {