Ticket #1755 (closed defect: fixed)
sugar-emulator: better error message if X server is unreachable
| Reported by: | sascha_silbe | Owned by: | sascha_silbe |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | 0.88.x |
| Component: | sugar | Version: | Git as of bugdate |
| Severity: | Trivial | Keywords: | r+ |
| Cc: | tomeu | Distribution/OS: | Unspecified |
| Bug Status: | Assigned |
Description
Seems I didn't test the error case of not being able to connect to the X server at all. Reported by yevlempy on sugar-devel:
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
Xephyr cannot open host display. Is DISPLAY set?
xrdb: No such file or directory
xrdb: Can't open display ':39'
Window manager error: Unable to open X display :39
1267079814.2631569 STARTUP: Starting the shell
Traceback (most recent call last):
File "/home/Rinki/project/sugar-jhbuild/install/bin/sugar-session", line 32, in <module>
import gtk
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/Rinki/project/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/util/emulator.py", line 156, in main
_kill_pipe(server)
File "/home/Rinki/project/sugar-jhbuild/install/lib/python2.6/site-packages/jarabe/util/emulator.py", line 80, in _kill_pipe
os.kill(pipe.pid, signal.SIGTERM)
AttributeError: 'NoneType' object has no attribute 'pid'
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

