From 560cb626a1a8f7d4bfca5d30f262cc90fb5d4608 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 10 Apr 2026 20:39:06 +0900 Subject: hst: remove enablement json adapter The go116 behaviour of built-in new function makes this cleaner. Signed-off-by: Ophestra --- internal/system/dbus.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/system/dbus.go') diff --git a/internal/system/dbus.go b/internal/system/dbus.go index 8e2a7ec7..70acdbdb 100644 --- a/internal/system/dbus.go +++ b/internal/system/dbus.go @@ -31,7 +31,9 @@ func (sys *I) MustProxyDBus( } } -// ProxyDBus finalises configuration ahead of time and starts xdg-dbus-proxy via [dbus] and terminates it on revert. +// ProxyDBus finalises configuration ahead of time and starts xdg-dbus-proxy via +// [dbus] and terminates it on revert. +// // This [Op] is always [Process] scoped. func (sys *I) ProxyDBus( session, system *hst.BusConfig, @@ -84,7 +86,7 @@ type dbusProxyOp struct { system bool } -func (d *dbusProxyOp) Type() hst.Enablement { return Process } +func (d *dbusProxyOp) Type() hst.Enablements { return Process } func (d *dbusProxyOp) apply(sys *I) error { sys.msg.Verbosef("session bus proxy on %q for upstream %q", d.final.Session[1], d.final.Session[0]) -- cgit v1.3.1