Opening entries with one-time passwords crash the application
Description:
Without having installed the python-cairo
package,
secrets will crash when trying to open (clicking on) an entry with a one-time password.
Additional info:
- package version(s): secrets 9.6-1
- config and/or log files: output of running
secrets -d
:04-09-24 15:10:50 | DEBUG | Opening last opened database: /home/hoedt/vault.kdbx 04-09-24 15:10:56 | DEBUG | Generate key for FileProvider 04-09-24 15:10:56 | DEBUG | Generate key for Pkcs11Provider 04-09-24 15:10:56 | DEBUG | Generate key for YubiKeyProvider 04-09-24 15:10:56 | DEBUG | No key providers in use, returning None 04-09-24 15:10:57 | DEBUG | Opening of safe /home/hoedt/vault.kdbx was successful 04-09-24 15:10:57 | DEBUG | Starting automatic save loop Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/gsecrets/widgets/progress_icon.py", line 19, in do_snapshot_symbolic ctx = snapshot.append_cairo(rect) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Couldn't find foreign struct converter for 'cairo.Context'
- link to upstream bug report, if any: N.A.
Steps to reproduce:
- Set up a minimal Gnome install without having python-cairo installed.
- Open secrets with a Keepass vault containing entries with one-time passwords.
- Click on an entry with a one-time password
- App crashes
Proposed fix:
Include python-cairo
as a(n optional) dependency.