diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-11-03 03:07:02 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-11-03 03:07:02 +0900 |
| commit | bfcce3ff75017aa8a4306cae88a4f31d9cc7238c (patch) | |
| tree | 236aa5ee95aa448d715858445b5045bed51c65dd /internal/app/share.dbus.go | |
| parent | 8cd3651bb612200bc1a4c7456e5722fb24bc10b7 (diff) | |
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 <cat@ophivana.moe>
Diffstat (limited to 'internal/app/share.dbus.go')
| -rw-r--r-- | internal/app/share.dbus.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
