all Dbus methods covered.

Now to add some niceties and add tests.
This commit is contained in:
2021-12-22 03:20:08 -05:00
parent 8ab14af06c
commit 25f9c3c1c9
14 changed files with 376 additions and 28 deletions

View File

@@ -37,7 +37,15 @@ func NewPassword(f *Folder, keyName string, recursion *RecurseOpts) (password *P
// Update fetches a Password's Password.Value.
func (p *Password) Update() (err error) {
// TODO.
var b []byte
if err = p.Dbus.Call(
DbusWMReadPassword, 0, p.folder.wallet.handle, p.folder.Name, p.Name, p.folder.wallet.wm.AppID,
).Store(&b); err != nil {
return
}
p.Value = string(b)
return
}