Cope better if no GUI is available
commit1e6cc434df61f18c2e77bf47b5ec518a18b6936a
authorThomas Leonard <talex5@gmail.com>
Fri, 10 Aug 2012 18:23:35 +0000 (10 19:23 +0100)
committerThomas Leonard <talex5@gmail.com>
Fri, 10 Aug 2012 18:27:12 +0000 (10 19:27 +0100)
tree910ad917cbc8eca1e380a867476f80b6ae99a3b4
parent354c8a1b894af20514413524356f718f58529735
Cope better if no GUI is available

We used to assume that a GUI was available whenever $DISPLAY was set. However,
there could be other reasons why the GUI can't be used, such as missing Python
modules. We now detect this and fall back to console mode gracefully.

If --gui is specified (to force use of the GUI) and no GUI is available, we
display an error message and abort, as before.
tests/testdownload.py
tests/testlaunch.py
zeroinstall/0launch-gui/0launch-gui
zeroinstall/0launch-gui/main.py
zeroinstall/cmd/config.py
zeroinstall/cmd/select.py
zeroinstall/helpers.py
zeroinstall/injector/background.py