Bug#831626: [pkg-gnupg-maint] Bug#831626: pinentry-gtk2 locks Xfce4 with Alt-Tab

2016-07-23 Thread Alain Rpnpif
Le 18 juillet 2016, Daniel Kahn Gillmor a écrit :

> On Mon 2016-07-18 07:44:21 +0200, Alain wrote:
> >  Now it is impossible to launch any command or to select another window.
> >  X is locked.
> 
> does pressing "escape" or "enter" resolve anything?

No, Daniel, because after the focus on the other window of a terminal,
pinentry is not accessible... and all is locked. But the terminal bar
of its menu is accessible but not the submenus. So no actions is
possible.

Oops, after a timeout of about one minute that I have not seen before,
pinentry quits, unlocks X and displays :
ERR 83886179 Operation cancelled 

So I think the cause is in the "modal" (I do not know the name of this
mode in gtk) aspect of the window of pinentry.

-- 
Alain Rpnpif



Bug#831626: [pkg-gnupg-maint] Bug#831626: pinentry-gtk2 locks Xfce4 with Alt-Tab

2016-07-18 Thread Daniel Kahn Gillmor
On Mon 2016-07-18 07:44:21 +0200, Alain wrote:
>  Now it is impossible to launch any command or to select another window.
>  X is locked.

does pressing "escape" or "enter" resolve anything?

--dkg



Bug#831626: [pkg-gnupg-maint] Bug#831626: pinentry-gtk2 locks Xfce4 with Alt-Tab

2016-07-17 Thread Alain
On Mon, Jul 18, 2016 at 01:11:04AM +0200, Daniel Kahn Gillmor wrote:
> > 5. pinentry is launched automatically.
> > 6. Type Alt-Tab to return on the other terminal.
> > Now it is impossible to launch any command or to select another window.
> > X is locked.

I am sorry Daniel, I make an error.
Read :
6. Click on the other terminal (instead of Alt-Tab).

Yes Alt-Tab is not possible, but the selection of the other window is possible 
with the mouse.

>   (echo getpin && sleep 1 && echo bye) | pinentry-gtk-2
This command gave the same issue.

So I recapitulate :
 1. Open two windows of xfce4-terminal
 2. Type F11 to put one terminal in full screen.
 3. Alt-Tab to return in the other terminal.
 4. Run : (echo getpin && sleep 1 && echo bye) | pinentry-gtk-2
 5. Click on the full-screened  terminal window.
 
 Now it is impossible to launch any command or to select another window.
 X is locked.

Regards

-- 
Alain Frappin



Bug#831626: [pkg-gnupg-maint] Bug#831626: pinentry-gtk2 locks Xfce4 with Alt-Tab

2016-07-17 Thread Daniel Kahn Gillmor
Control: affects 831626 xfce4
Control: tags 831626 + moreinfo

On Sun 2016-07-17 22:19:10 +0200, Alain wrote:
> Package: pinentry-gtk2
> Version: 0.9.7-5~bpo8+1
> Severity: important
 [...]
> First, prepare an encrypted file with gpg that I call myfile.gpg.
> To reproduce this bug, I do :
> 1. Open two windows of xfce4-terminal
> 2. Type F11 to put one terminal in full screen.
> 3. Alt-Tab to return in the other terminal.
> 4. Run : gpg -d myfile.gpg
> 5. pinentry is launched automatically.
> 6. Type Alt-Tab to return on the other terminal.
> Now it is impossible to launch any command or to select another window.
> X is locked.
>
> Only a "kill -9" from a non-graphic console is possible and after that,
> Alt-Tab or F11 is possible again.
>
> I think that Alt-Tab should be forbidden when pinentry-gtk2 is displayed.

I'm surprised to hear that this happens in xfce4.  Maybe the xfce4
maintainers (cc'ed here) want to comment on this?  On the window manager
i'm most used to (openbox) my meta-key combination to tab-cycle windows
doesn't work when pinentry is invoked.

Alain, can you replicate this problem using only pinentry?  You can
avoid using gpg entirely yet still launch pinentry-gtk-2 with:

  (echo getpin && sleep 1 && echo bye) | pinentry-gtk-2

NOTE: this will print whatever passphrase you enter to the terminal, so
do not type a real passphrase here.

Alain, if you encounter this problem, does hitting the "escape" key or
"enter" dismiss the pinentry dialog and restore the functionality of
your session without needing to switch to a non-graphical console?

--dkg


signature.asc
Description: PGP signature