diff --git a/src/roommanager.cpp b/src/roommanager.cpp index 8bbd690cd..9471a6a27 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -16,6 +16,7 @@ #include "urlhelper.h" #include +#include #include #include #include @@ -239,6 +240,12 @@ void RoomManager::loadInitialRoom() resolveResource(m_arg); } + const auto runtimePlatform = KRuntimePlatform::runtimePlatform(); + if (runtimePlatform.contains(QStringLiteral("phone")) || runtimePlatform.contains(QStringLiteral("handset"))) { + // We don't want to open a room on startup on mobile + return; + } + if (m_currentRoom) { // we opened a room with the arg parsing already return;