diff --git a/kcmshell/main.cpp b/kcmshell/main.cpp --- a/kcmshell/main.cpp +++ b/kcmshell/main.cpp @@ -292,6 +292,16 @@ dlg->setWindowIcon( QIcon::fromTheme(iconName) ); } +#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)) + if (modules.count() == 1 && app.desktopFileName() == QLatin1String("org.kde.kcmshell5")) { + const QString path = QStandardPaths::locate(QStandardPaths::GenericDataLocation, + QStringLiteral("kservices5/%1.desktop").arg(modules.first()->desktopEntryName())); + if (!path.isEmpty()) { + app.setDesktopFileName(path); + } + } +#endif + dlg->show(); app.exec();