Avoid rain of GPG key id images if gpg has a defined photoviewer
If GnuPG has a defined photoviewer application then every time I start Gajim the screen is full with that application as key verification causes its run by GnuPG. I actually want this application running when I use GnuPG explicitely (when running gpg --list-keys or --verify) but it is annoying when I don't expect it: when starting gajim.
Implementation can be as simple as that:
diff --git a/src/common/GnuPG.py b/src/common/GnuPG.py index ab88c20..c778253 100644 --- a/src/common/GnuPG.py +++ b/src/common/GnuPG.py @@ -40,6 +40,9 @@ if gajim.HAVE_GPG: self.options.armor = 1 self.options.meta_interactive = 0 self.options.extra_args.append('--no-secmem-warning')
-
# disable photo viewer when verifying keys
-
self.options.extra_args.append('--verify-options')
-
self.options.extra_args.append('no-show-photo') if self.use_agent: self.options.extra_args.append('--use-agent')