system/dbus: dump method prints msgbuf
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -34,8 +34,8 @@ var posixUsername = regexp.MustCompilePOSIX("^[a-z_]([A-Za-z0-9_-]{0,31}|[A-Za-z
|
||||
type appSeal struct {
|
||||
// app unique ID string representation
|
||||
id string
|
||||
// dbus proxy message buffer retriever
|
||||
dbusMsg func(f func(msgbuf []string))
|
||||
// dump dbus proxy message buffer
|
||||
dbusMsg func()
|
||||
|
||||
// freedesktop application ID
|
||||
fid string
|
||||
|
||||
@@ -140,11 +140,7 @@ func (a *app) Run(ctx context.Context, rs *RunState) error {
|
||||
|
||||
// print queued up dbus messages
|
||||
if a.seal.dbusMsg != nil {
|
||||
a.seal.dbusMsg(func(msgbuf []string) {
|
||||
for _, msg := range msgbuf {
|
||||
fmsg.Println(msg)
|
||||
}
|
||||
})
|
||||
a.seal.dbusMsg()
|
||||
}
|
||||
|
||||
// update store and revert app setup transaction
|
||||
|
||||
Reference in New Issue
Block a user