helper: helper.Helper interface

For upcoming bwrap implementation of helper.Helper

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-10-07 15:37:52 +09:00
parent 6a2802cf30
commit 85407dd3c0
5 changed files with 117 additions and 85 deletions

View File

@@ -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