summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--homescreen/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp
index 74ec4f4..e9a5817 100644
--- a/homescreen/src/main.cpp
+++ b/homescreen/src/main.cpp
@@ -221,6 +221,11 @@ load_agl_shell_app(QPlatformNativeInterface *native,
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);