[Bug 2009825] Re: [snap] thunderbird cannot sign messages with external gnupg

Christian Pointner 2009825 at bugs.launchpad.net
Wed Nov 19 19:03:03 UTC 2025


On my machine i get the following:

   equinox at equinox-ws ~ % pgrep gpg-agent
   3530
   equinox at equinox-ws ~ % snap connections thunderbird | grep gpg
   gpg-keys                thunderbird:gpg-keys                 :gpg-keys                       manual
   equinox at equinox-ws ~ % snap run --shell thunderbird -c 'gpg -k'
   << same output as `gpg -k` running outside of the snap sandbox

However this does not test the gpg-agent connections since '-k' only
lists public keys. Afaik gpg will not use the agent for public key
handling. The real test should imho be:

    snap run --shell thunderbird -c 'gpg -K'

Mind that this is a capital K which is the short form of the option '--list-secret-keys'
When i run the this command i get a lot of lines like this:

   gpg: Note: trustdb not writable
   gpg: error running '/usr/bin/gpg-agent': probably not installed
   gpg: failed to start agent '/usr/bin/gpg-agent': Configuration error
   gpg: can't connect to the agent: Configuration error

Whereas listing secret keys inside the snap does work using the wrapper
from #25.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/2009825

Title:
  [snap] thunderbird cannot sign messages with external gnupg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/2009825/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list