Bug 464476 - gjots2 fails gpg decrypt
Summary: gjots2 fails gpg decrypt
Alias: None
Product: Fedora
Classification: Fedora
Component: gjots2
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-09-29 11:35 UTC by Steven Bakker
Modified: 2009-01-15 03:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-11-07 12:50:26 UTC
Type: ---

Attachments (Terms of Use)
Patch for call to gpg from gjots2 (1.14 KB, patch)
2008-09-29 11:35 UTC, Steven Bakker
no flags Details | Diff

Description Steven Bakker 2008-09-29 11:35:00 UTC
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):


How reproducible:


Steps to reproduce:

1. Create a gpg encrypted file:

       ls -l | gpg --symmetric --output=foobar.gpg

2. Start gjots2 from the Gnome menu:

       Applications->Accessories->GJots2 Jotter

3. Select to open the "foobar.gpg" file.

4. Enter the password in the pop-up dialog.

Actual results:

The main window shows:

       gpg: cannot open `/dev/tty': No such device or address

Expected results:

The (decrypted) contents in the main window.

Additional info:

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.

Comment 1 Bob Hepple 2008-11-07 08:02:51 UTC
Fixed in 2.3.8

Comment 2 Fedora Update System 2009-01-09 09:56:23 UTC
gjots2-2.3.8-1.fc10 has been submitted as an update for Fedora 10.

Comment 3 Fedora Update System 2009-01-15 03:06:48 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.