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

@@ -3,8 +3,8 @@ package dbus
import "io"
// CompareTestNew provides TestNew with comparison access to unexported Proxy fields.
func (p *Proxy) CompareTestNew(path string, session, system [2]string) bool {
return path == p.path && session == p.session && system == p.system
func (p *Proxy) CompareTestNew(session, system [2]string) bool {
return session == p.session && system == p.system
}
// AccessTestProxySeal provides TestProxy_Seal with access to unexported Proxy seal field.