apt-listchanges fails when you are not allowed to use the DISPLAY

Bug #18496 reported by Björn Torkelsson
6
Affects Status Importance Assigned to Milestone
apt-listchanges (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

When running apt-listchanges with $DISPLAY set to an existing display which you
are not allowed to use, it fails with:

ankpelle[~]# /usr/bin/apt-listchanges -v -f pager
/archive/Ubuntu/devilspie_0.10-1_i386.deb
X11 connection rejected because of wrong authentication.
The application 'apt-listchanges' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.

and it does not fallback to the pager. AFAICT it fails when doing 'import gtk'.

Revision history for this message
Björn Torkelsson (torkel) wrote :

As I suck to write bugreports I forgot to mention that this is with
2.59-0.2ubuntu3, i.e the version currently in breezy and that the frontend is
set to mail.

It does not matter which frontend I use, if $DISPLAY is set to a display I'm not
allowed to use apt-listchanges fails. If $DISPLAY is unset or set to a
non-existant display it works as expected.

Revision history for this message
Christian Reis (kiko) wrote :

The hoary version of apt-listchanges didn't depend on gtk+, fwiw.

Revision history for this message
Adam Israel (aisrael) wrote :

Confirmed this bug exists in breezy. apt-listchanges always tries to import
pygtk and gtk (in apt_listchanges.py) no matter what frontend is selected

Revision history for this message
Adam Israel (aisrael) wrote :

I think pygtk/gtk shouldn't be imported unless the gtk frontend is actually
selected. I'd be happy to write this patch, if mvo doesn't object.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Can you still confirm this problem in the current version of apt-listchanges (
2.59-0.2ubuntu4) in breezy? It should be more carefull about failed X display etc.

Cheers,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

Just got a confirmation (via irc) that it's still there in ubuntu4.

Revision history for this message
Michael Vogt (mvo) wrote :

This problem should be fixed with the upload of:

apt-listchanges_2.59-0.2ubuntu5_source

please reopen if the problem does not go away for you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.