diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-29 02:33:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-29 06:11:47 +0900 |
| commit | 46cd3a28c83e93b5d66c52d06a8366c11910d5c0 (patch) | |
| tree | 6e25c5078b5cd9de78b7a6c9b253f1132358812b /system/xhost.go | |
| parent | ad1bc6794f0053c3e63eab408a0d530d53e8b51c (diff) | |
container: remove global msg
This frees all container instances of side effects.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/xhost.go')
| -rw-r--r-- | system/xhost.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/xhost.go b/system/xhost.go index 4ee49931..e5ea2580 100644 --- a/system/xhost.go +++ b/system/xhost.go @@ -16,18 +16,18 @@ type xhostOp string func (x xhostOp) Type() Enablement { return EX11 } func (x xhostOp) apply(sys *I) error { - sys.verbosef("inserting entry %s to X11", x) + sys.msg.Verbosef("inserting entry %s to X11", x) return newOpError("xhost", sys.xcbChangeHosts(xcb.HostModeInsert, xcb.FamilyServerInterpreted, "localuser\x00"+string(x)), false) } func (x xhostOp) revert(sys *I, ec *Criteria) error { if ec.hasType(x.Type()) { - sys.verbosef("deleting entry %s from X11", x) + sys.msg.Verbosef("deleting entry %s from X11", x) return newOpError("xhost", sys.xcbChangeHosts(xcb.HostModeDelete, xcb.FamilyServerInterpreted, "localuser\x00"+string(x)), true) } else { - sys.verbosef("skipping entry %s in X11", x) + sys.msg.Verbosef("skipping entry %s in X11", x) return nil } } |
