[Reportbug-maint] Bug#576109: reportbug: GTK warning printed if DISPLAY is not set

Sascha Silbe sascha-debian-bugs-reportbug-2010-03-31 at silbe.org
Wed Mar 31 22:44:46 UTC 2010


Package: reportbug
Version: 4.10.2
Severity: minor


If DISPLAY is not set, reportbug will print a noisy warning:

sascha.silbe at xo15-minimal:~$ reportbug --email sascha-debian-bugs-reportbug-$(date -I)@silbe.org reportbug
/usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
*** Welcome to reportbug.  Use ? for help at prompts. ***

If X isn't available, reportbug should just accept that silently (by not loading the gtk module).

-- Package-specific info:
** Environment settings:
INTERFACE="text"

** /home/sascha.silbe/.reportbugrc:
reportbug_version "4.10.2"
mode standard
ui text
email "sascha-debian-bugs-filtered at silbe.org"
no-cc
header "X-Debbugs-CC: sascha-debian-bugs-filtered at silbe.org"
smtphost reportbug.debian.org

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.9-xo1.5-1-00636-ge8fbfa6 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt                           0.7.25.3   Advanced front-end for dpkg
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-reportbug              4.10.2     Python modules for interacting wit

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  debconf-utils                 <none>     (no description available)
pn  debsums                       <none>     (no description available)
pn  dlocate                       <none>     (no description available)
pn  emacs22-bin-common | emacs23- <none>     (no description available)
ii  file                          5.04-1     Determines file type using "magic"
ii  gnupg                         1.4.10-2   GNU privacy guard - a free PGP rep
ii  nullmailer [mail-transport-ag 1:1.04-1.2 simple relay-only mail transport a
ii  python-gtk2                   2.16.0-2   Python bindings for the GTK+ widge
pn  python-gtkspell               <none>     (no description available)
pn  python-urwid                  <none>     (no description available)
pn  python-vte                    <none>     (no description available)
pn  xdg-utils                     <none>     (no description available)

-- no debconf information





More information about the Reportbug-maint mailing list