From bfcce3ff75017aa8a4306cae88a4f31d9cc7238c Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 3 Nov 2024 03:07:02 +0900 Subject: system/dbus: buffer xdg-dbus-proxy messages Pointing xdg-dbus-proxy to stdout/stderr makes a huge mess. This change enables app to neatly print out prefixed xdg-dbus-proxy messages after output is resumed. Signed-off-by: Ophestra Umiker --- internal/app/share.dbus.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/app/share.dbus.go') diff --git a/internal/app/share.dbus.go b/internal/app/share.dbus.go index a96b1de5..c80bbb92 100644 --- a/internal/app/share.dbus.go +++ b/internal/app/share.dbus.go @@ -22,8 +22,10 @@ func (seal *appSeal) shareDBus(config [2]*dbus.Config) error { sessionPath, systemPath := path.Join(seal.share, "bus"), path.Join(seal.share, "system_bus_socket") // configure dbus proxy - if err := seal.sys.ProxyDBus(config[0], config[1], sessionPath, systemPath); err != nil { + if f, err := seal.sys.ProxyDBus(config[0], config[1], sessionPath, systemPath); err != nil { return err + } else { + seal.dbusMsg = f } // share proxy sockets -- cgit v1.3.1