shell: quit weston, if weston-desktop-shell dies early
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 28 Aug 2014 08:41:26 +0000 (11:41 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 1 Sep 2014 07:18:59 +0000 (10:18 +0300)
commit2e62e4ad710d86fb5410e81541fda2c98f97a190
treed51ebcf6728218dfdc6fb16718b4694eb10b5b72
parent8e3fe08c4281205edb8380fceb9954a481c00858
shell: quit weston, if weston-desktop-shell dies early

If weston-desktop-shell dies soon after launch, or maybe cannot be
executed at all, let weston exit rather than letting the user stare at a
black screen.

But, do not exit weston, if weston-desktop-shell dies later, as the user
may already have apps open, and those apps would likely still function
correctly. This gives the user the opportunity to save his work and
close the apps properly.

This should make one class of "I see only black screen" failures obvious.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
desktop-shell/shell.c
desktop-shell/shell.h