From 46cd3a28c83e93b5d66c52d06a8366c11910d5c0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 29 Sep 2025 02:33:10 +0900 Subject: container: remove global msg This frees all container instances of side effects. Signed-off-by: Ophestra --- system/dbus/proxy.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'system/dbus/proxy.go') diff --git a/system/dbus/proxy.go b/system/dbus/proxy.go index 2f625f68..a83bc9c3 100644 --- a/system/dbus/proxy.go +++ b/system/dbus/proxy.go @@ -7,6 +7,7 @@ import ( "sync" "syscall" + "hakurei.app/container" "hakurei.app/helper" ) @@ -27,6 +28,7 @@ func (e *BadInterfaceError) Error() string { type Proxy struct { helper helper.Helper ctx context.Context + msg container.Msg cancel context.CancelCauseFunc cause func() error @@ -107,6 +109,6 @@ func Finalise(sessionBus, systemBus ProxyPair, session, system *Config) (final * } // New returns a new instance of [Proxy]. -func New(ctx context.Context, final *Final, output io.Writer) *Proxy { - return &Proxy{name: ProxyName, ctx: ctx, final: final, output: output, useSandbox: true} +func New(ctx context.Context, msg container.Msg, final *Final, output io.Writer) *Proxy { + return &Proxy{name: ProxyName, ctx: ctx, msg: msg, final: final, output: output, useSandbox: true} } -- cgit v1.3.1