homescreen: Bail out if no screens are found 48/27748/1 13.93.0 needlefish/13.93.0 needlefish_13.93.0
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 7 Jul 2022 10:00:19 +0000 (13:00 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 8 Jul 2022 13:45:52 +0000 (16:45 +0300)
commitd1347bf236f84908fea96ba929e0e8376c2b1d78
tree5f3026489c46803e35f8b0a023875513083c265d
parente490ff1e1e31b4a837cb8063f7346dc65ffe073e
homescreen: Bail out if no screens are found

It might happen the system doesn't have any outputs connected, or there
are literally no outputs present in the system. Instead of crashing and
systemd trying always to start it up just make sure we handle that and
print out a message about what is going it.

Bug-AGL: SPEC-4459
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ia3dfab66e69ea36b2cf50fc0f6c1fd188a87e240
homescreen/src/main.cpp