Running gtg when X is unavailable produces ugly error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
Low
|
Bryce Harrington |
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/
warnings.
/usr/local/
gtk.icon_
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
tb = TaskBrowser(req, config, logger=logger)
File "/usr/local/
self.
File "/usr/local/
gtk.
AttributeError: 'NoneType' object has no attribute 'prepend_
Changed in gtg: | |
milestone: | 0.3 → 0.2.2 |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
How to detect if X is unavailable? an easy way is look at the environment variables (which would make this a bug marked "love"), but having DISPLAY set does not mean that X is really running.
But then, are we going to care if someone is so evil to set DISPLAY manually?