diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-24 16:11:08 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-24 16:11:08 +0900 |
| commit | 000607da5fca0e101cb43db9b1c1b466e3292d35 (patch) | |
| tree | 3dcf1cdbf086bca5883964324442de42e17776bb /dbus/run.go | |
| parent | 1cb90c0840e6d2bdef9ed8b9cb5ae54fc1b6c91c (diff) | |
helper: separate helper args fd builder from dbus
This method of passing arguments is used in bubblewrap as well as other tools, this commit separates the argument builder/writer to the helper package and generalise it as an interface.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'dbus/run.go')
| -rw-r--r-- | dbus/run.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/run.go b/dbus/run.go index 315b31de..cc776063 100644 --- a/dbus/run.go +++ b/dbus/run.go @@ -43,7 +43,7 @@ func (p *Proxy) Start(ready *chan bool) error { statsP, argsP := p.statP[0], p.argsP[1] - if _, err := argsP.Write([]byte(*p.seal)); err != nil { + if _, err := p.seal.WriteTo(argsP); err != nil { if err1 := p.cmd.Process.Kill(); err1 != nil { panic(err1) } |
