That's a good question. I think that QGuiApplication assumes it will be creating a window at some stage, so will connect to the display server in advance. If you know for sure you're not going to create a window, QCoreApplication should be used instead.
To test this hypothesis, I tried another platform: X11 itself. I ran your test app without a valid X running (actually I faked it by pointing it to a non-existing X socket): DISPLAY=:1 QT_QPA_PLATFORM=xcb ./test and got a very similar crash: http://pastebin.ubuntu.com/24171497/ So I think this is behaving as expected. If you disagree, please re-open this bug and say why. I'd definitely like to know what your use-case is. -G ** Changed in: qtubuntu (Ubuntu) Status: New => Invalid ** Changed in: qtubuntu (Ubuntu) Assignee: (unassigned) => Gerry Boland (gerboland) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1238838 Title: [qpa] QUbuntuIntegration requests screen info which open mir client connection with shell - even if client does not open window To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtubuntu/+bug/1238838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs