Created attachment 317954 [details]
Patch for call to gpg from gjots2
Description of problem:
If gjots2 is not attached to a terminal (i.e. started from the Gnome menu as opposed to a command shell), it is not possible to open a gpg encrypted file.
Version-Release number of selected component (if applicable):
Steps to reproduce:
1. Create a gpg encrypted file:
ls -l | gpg --symmetric --output=foobar.gpg
2. Start gjots2 from the Gnome menu:
3. Select to open the "foobar.gpg" file.
4. Enter the password in the pop-up dialog.
The main window shows:
gpg: cannot open `/dev/tty': No such device or address
The (decrypted) contents in the main window.
The bug is in the "file.py" (installed in /usr/lib/python2.5/site-package/gjots2) where gpg is called without "--batch" or "--no-tty" options.
I've attached a patch below that would solve this problem.
Fixed in 2.3.8
gjots2-2.3.8-1.fc10 has been submitted as an update for Fedora 10.
gjots2-2.3.8-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.