diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp index 7e072288fd..fffdbb3a4a 100644 --- a/Source/Core/DolphinWX/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/MainNoGUI.cpp @@ -118,6 +118,11 @@ class PlatformX11 : public Platform { XInitThreads(); dpy = XOpenDisplay(nullptr); + if (!dpy) + { + PanicAlert("No X11 display found"); + exit(1); + } win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowXPos,