diff --git a/src/kcms/tabbox/main.cpp b/src/kcms/tabbox/main.cpp index 101b00784e..398d12f262 100644 --- a/src/kcms/tabbox/main.cpp +++ b/src/kcms/tabbox/main.cpp @@ -144,9 +144,15 @@ void KWinTabBoxConfig::initLayoutLists() const auto lnfPackages = availableLnFPackages(); for (const auto &package : lnfPackages) { const auto &metaData = package.metadata(); + + const QString switcherFile = package.filePath("windowswitcher", QStringLiteral("WindowSwitcher.qml")); + if (switcherFile.isEmpty()) { + // Skip lnfs that don't actually ship a switcher + continue; + } layoutNames << metaData.name(); layoutPlugins << metaData.pluginId(); - layoutPaths << package.filePath("windowswitcher", QStringLiteral("WindowSwitcher.qml")); + layoutPaths << switcherFile; } for (const auto &offer : offers) {