Flatpak version of Gajim is incompatible with either trust-model tofu+pgp or tofu-default-policy unknown in gpg.conf
Please first check if another issue has been opened for your problem
#8515 (comment 178391) but python-gnupg has confirmed that this is not an issue on their side and the Flatpak may be running gpg1 instead of gpg2 causing this issue.
Versions
- OS: Debian 10
- Gajim version: 1.1.3
- GTK version: unknown
- Python-nbxmpp version: unknown
Steps to reproduce the problem
- Add
trust-model tofu+pgp
andtofu-default-policy unknown
to~/.gnupg/gpg.conf
- Run Gajim from Flatpak
-
org.gajim.Gajim.Plugin.pgp
and loading it may be required, I am not using fresh config files.
Expected behavior
Gajim starts normally.
Actual behavior
└┌(%:~)┌- org.gajim.Gajim
No translations found
Dirs searched: [PosixPath('/app/share')]
Traceback (most recent call last):
File "/app/lib/python3.7/site-packages/gajim/application.py", line 220, in _activate
self.interface = Interface()
File "/app/lib/python3.7/site-packages/gajim/gui_interface.py", line 2704, in __init__
app.connections[account] = Connection(account)
File "/app/lib/python3.7/site-packages/gajim/common/connection.py", line 513, in __init__
CommonConnection.__init__(self, name)
File "/app/lib/python3.7/site-packages/gajim/common/connection.py", line 96, in __init__
self.gpg = gpg.GnuPG()
File "/app/lib/python3.7/site-packages/gajim/common/gpg.py", line 33, in __init__
gnupg.GPG.__init__(self, gpgbinary=app.get_gpg_binary(), use_agent=use_agent)
File "/app/plugins/lib/python3.7/site-packages/gnupg.py", line 851, in __init__
result.stderr))
ValueError: Error invoking gpg: 1: gpg: unknown trust model 'tofu+pgp'
gpg: unknown TOFU policy 'unknown'
gpg: (use "help" to list choices)