diff --git a/krfb/main.cpp b/krfb/main.cpp --- a/krfb/main.cpp +++ b/krfb/main.cpp @@ -121,13 +121,21 @@ app.setQuitOnLastWindowClosed(false); - if (!checkX11Capabilities()) { + if (QX11Info::isPlatformX11()) { + if (!checkX11Capabilities()) { + return 1; + } + + // upgrade the configuration + checkOldX11PluginConfig(); + } else { + KMessageBox::error(nullptr, + i18n("Desktop Sharing is not running under an X11 Server. " + "Other display servers are currently not supported."), + i18n("Desktop Sharing Error")); return 1; } - // upgrade the configuration - checkOldX11PluginConfig(); - //init the core InvitationsRfbServer::init();