dbus: use name resolved by exec.Command

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-10-07 16:55:27 +09:00
parent 85407dd3c0
commit 55a5b6f242
5 changed files with 20 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ func (p *Proxy) Start(ready chan error, output io.Writer) error {
return errors.New("proxy not sealed")
}
h := helper.New(p.seal, p.path,
h := helper.New(p.seal, p.name,
func(argsFD, statFD int) []string {
if statFD == -1 {
return []string{"--args=" + strconv.Itoa(argsFD)}