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
else
screen = find_screen(screen_name);
+ if (!screen) {
+ qDebug() << "No outputs present in the system.";
+ return;
+ }
+
qDebug() << "found primary screen " << qApp->primaryScreen()->name() <<
"first screen " << qApp->screens().first()->name();
output = getWlOutput(native, screen);