← Back to team overview

gtg team mailing list archive

[Bug 519202] Re: Running gtg when X is unavailable produces ugly error message

 

** Changed in: gtg
       Status: Fix Committed => Fix Released

-- 
Running gtg when X is unavailable produces ugly error message
https://bugs.launchpad.net/bugs/519202
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Fix Released

Bug description:
gtg should bail out early if X is unavailable.  Instead, it appears to continue on trying and generates a rather ugly error message:

bryce@salisbury:~$ gtg
X11 connection rejected because of wrong authentication.
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/local/lib/python2.6/dist-packages/GTG/taskbrowser/browser.py:171: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  gtk.icon_theme_get_default().prepend_search_path(i)
Traceback (most recent call last):
  File "/usr/local/bin/gtg", line 40, in <module>
    sys.exit(GTG.gtg.main(options, args))
  File "/usr/local/lib/python2.6/dist-packages/GTG/gtg.py", line 120, in main
    tb = TaskBrowser(req, config, logger=logger)
  File "/usr/local/lib/python2.6/dist-packages/GTG/taskbrowser/browser.py", line 106, in __init__
    self._init_icon_theme()
  File "/usr/local/lib/python2.6/dist-packages/GTG/taskbrowser/browser.py", line 171, in _init_icon_theme
    gtk.icon_theme_get_default().prepend_search_path(i)
AttributeError: 'NoneType' object has no attribute 'prepend_search_path'





References