aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus/run.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-07 15:37:52 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-07 15:37:52 +0900
commit85407dd3c09ffbc4c102baa90249ded685badd12 (patch)
treeb4b3cabd25fe317a70c0ea0fcdab555e89f75a47 /dbus/run.go
parent6a2802cf309fb9758756c56ef05c9354d9cb9003 (diff)
helper: helper.Helper interface
For upcoming bwrap implementation of helper.Helper Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'dbus/run.go')
-rw-r--r--dbus/run.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dbus/run.go b/dbus/run.go
index da0bbc8d..5e489ba3 100644
--- a/dbus/run.go
+++ b/dbus/run.go
@@ -27,12 +27,13 @@ func (p *Proxy) Start(ready chan error, output io.Writer) error {
}
},
)
+ cmd := h.Unwrap()
// xdg-dbus-proxy does not need to inherit the environment
- h.Env = []string{}
+ cmd.Env = []string{}
if output != nil {
- h.Stdout = output
- h.Stderr = output
+ cmd.Stdout = output
+ cmd.Stderr = output
}
if err := h.StartNotify(ready); err != nil {
return err