mailnag
mailnag copied to clipboard
Error message for missing libsecret provider
Hello, I'm trying to package mailnag for Voidlinux. Your program uses libsecret to manage passwords. It is not possible for me to add a requirement of a libsecret provider (GNOME Keyring, Kwallet...) to the package, due to technical limitations. So the only way the user is notified of a missing libsecret provider is this:
INFO (2021-06-06 18:10:31): Shutting down...
Traceback (most recent call last):
File "/bin/mailnag", line 141, in <module>
if __name__ == '__main__': main()
File "/bin/mailnag", line 127, in main
daemon = MailnagDaemon(
File "/usr/lib/python3.9/site-packages/Mailnag/daemon/mailnagdaemon.py", line 57, in __init__
accountman.load_from_cfg(self._cfg, enabled_only = True)
File "/usr/lib/python3.9/site-packages/Mailnag/common/accounts.py", line 259, in load_from_cfg
password = self._secretstore.get(self._get_account_id(user, server, imap))
File "/usr/lib/python3.9/site-packages/Mailnag/common/secretstore.py", line 45, in get
return Secret.password_lookup_sync(self._schema, {'id': secret_id}, None)
gi.repository.GLib.Error: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)
Could you please make this error message more clear for the user?