diff options
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/proxy.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dbus/proxy.go b/dbus/proxy.go index 59b887d2..e547855d 100644 --- a/dbus/proxy.go +++ b/dbus/proxy.go @@ -66,7 +66,14 @@ func (p *Proxy) String() string { return "(unsealed dbus proxy)" } +// BwrapStatic builds static bwrap args. This omits any fd-dependant args. func (p *Proxy) BwrapStatic() []string { + p.lock.RLock() + defer p.lock.RUnlock() + + if p.bwrap == nil { + return nil + } return p.bwrap.Args() } |
