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/dbus.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/dbus.go')
| -rw-r--r-- | internal/system/dbus.go | 6 |
1 files changed, 4 insertions, 2 deletions
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]) |
