Hi again,

after disabling the gpg-agent part of the Gnome keyring, I can send
encrypted emails again. (Thanks again for the tips, btw.)
However, passphrase caching seems to not work at all. According to the
Enigmail wiki [1], since GnuPG version 2 passphrase handling is done by
an external programme, like gpg-agent, which I have installed. Some
googling yields e.g. [2], suggesting that I add "use-agent" to the GnuPG
configuration file, but according to the gpg2 man page, this option has
no effect any more. And I cannot find any direct Enigmail option
controlling the use of gpg-agent either, in accordance with [1].
I am using GNOME and thus have both gnome-keyring and seahorse
installed. I do get alerted that this is why GnuPG is ignoring any
changes of the set expiration time for key passphrases. However, I did
disable the gpg-agent part of gnome-keyring (to fix the first problem),
and uninstalling seahorse doesn't fix this problem.
Any ideas on how to make passphrase caching work again? The debugging
logs don't seem to contain anything useful this time.

Thanks for your help.
Best,
Mike

[1] https://enigmail.wiki/Notes,_Tips_%26_Tricks#Passphrase_handling
[2]
https://www.debian-administration.org/article/378/Gnu_Privacy_Guard_Agent_GPG

Am 26.02.2016 um 02:11 schrieb Darshaka Pathirana:
> Hi,
>
> I also stumbled over this problem today. I am running Linux Mint
> Debian Edition 2 (LMDE 2) with Cinnamon Desktop Environment,
> Thunderbird and the GnuPG v2.0.26.
>
> I solved this problem by disabling the gpg-agent-part of the Gnome
> keyring. It was not as trivial as I though to do so, so here are some
> possible solutions I want to share with you:
>
> Disable per user:
>
>   % mkdir -p ~/.config/autostart
>   % cp /etc/xdg/autostart/gnome-keyring-gpg.desktop ~/.config/autostart/.
>
> Solution I:
>
>   % echo "Hidden=true" >> ~/.config/autostart/gnome-keyring-gpg.desktop
>
> This seems to be the most generic way and should work on all desktops
> supporting the Desktop Entry Specification:
>
> [1] 
> https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
>
> Solution II:
>
> Add "NoDisplay=false" (if it does not exists) or change NoDisplay=true
> to false (if it does) in '~/.config/autostart/gnome-keyring-gpg.desktop'.
>
> As I am running Cinnamon I also had to comment out the "OnlyShowIn="
> line. After that the application was listed in the "Startup
> Applications" where I was able to disable the GPG Password Agent.
>
> [2] http://askubuntu.com/a/278309/501985
>
> Disable system wide:
>
> Yes, you could edit the file in '/etc/xdg/autostart' and make the same
> changes I stated above but I find this solution much more appealing:
>
>   % sudo dpkg-divert --local --rename --divert 
> /etc/xdg/autostart/gnome-keyring-gpg.desktop-disable --add 
> /etc/xdg/autostart/gnome-keyring-gpg.desktop
>
> To revert that change, you can run:
>
>   % sudo dpkg-divert --rename --remove 
> /etc/xdg/autostart/gnome-keyring-gpg.desktop
>
> [3] https://wiki.gnupg.org/GnomeKeyring
>
> Please be aware that you have to logout and login before the changes
> take effect.
>
> But: after disabling the GPG-agent-part of the Gnome keyring I have to
> enter the password twice before the mail is signed/encrypted. I still 
> have no idea how to fix that.
>
> HTH && HAND
>  - Darsha
>
> On 2016-02-25 17:52, patrick at enigmail.net (Patrick Brunschwig) wrote:
>> It is better (=future proof) to disable the gpg-agent part of the Gnome
>> keyring.
>>
>> -Patrick

_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

Reply via email to