diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-24 18:02:56 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-24 18:03:05 +0900 |
| commit | b722adc4dd76ef7ff48aa90984c509c04dd0c0a1 (patch) | |
| tree | 8821017eca52e2ec65251e9cf9d3a1f91381b6d3 | |
| parent | 000607da5fca0e101cb43db9b1c1b466e3292d35 (diff) | |
dbus: seal as io.WriterTo interface
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
| -rw-r--r-- | dbus/dbus.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbus/dbus.go b/dbus/dbus.go index d0e82e17..22cd35a8 100644 --- a/dbus/dbus.go +++ b/dbus/dbus.go @@ -2,6 +2,7 @@ package dbus import ( "errors" + "io" "os" "os/exec" "sync" @@ -25,7 +26,7 @@ type Proxy struct { read *chan error ready *chan bool - seal helper.Args + seal io.WriterTo lock sync.RWMutex } @@ -42,7 +43,7 @@ func (p *Proxy) String() string { } if p.seal != nil { - return p.seal.String() + return p.seal.(helper.Args).String() } return "(unsealed dbus proxy)" |
