signing mail with openpgp only possible when started from command line
Hi,
I sign mails with openpgp usually, I just switched to evolution and I can not sign mail when evolution is started normally via the Gnome menu. When I try to send a mail that should me signed, I get:
You may need to select different mail options.
Detailed error: Output from gpg2:
gpg: WARNING: unsafe permissions on homedir '/home/pascal/.gnupg'
gpg: Note: RFC4880bis features are enabled.
gpg: using subkey 0x9DF5441454F67138 instead of primary key 0x75A218C73BC80D28
gpg: writing to '-'
gpg: pinentry launched (21329 curses 1.2.0-unknown - - :1 - 1000/1000 0)
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
When I start evolution from command line, I get the usual ncurses window for pinentry in the terminal which opened evolution and it signs and sends the mail correctly.
I have a clue about this gpg: signing failed: Inappropriate ioctl for device
. I had the same error when signing commits in github, adding running export GPG_TTY=$TTY
(or putting it in .zshrc helped there. I also put this command into bashrc, but this did not help with evolution either.