diff --git a/src/tools/launcher/applauncherwidget.cpp b/src/tools/launcher/applauncherwidget.cpp index c60c1748b7..5dd18dfaa4 100644 --- a/src/tools/launcher/applauncherwidget.cpp +++ b/src/tools/launcher/applauncherwidget.cpp @@ -62,13 +62,14 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent) m_parser.processDirectory(allUserAppsFolder); } #else - QString dirLocal = QDir::homePath() + "/.local/share/applications/"; - QDir appsDirLocal(dirLocal); - m_parser.processDirectory(appsDirLocal); + QStringList appsLocations = + QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation); + + for (auto appsLocation : appsLocations) { + QDir appsDir(appsLocation); + m_parser.processDirectory(QDir(appsDir)); + } - QString dir = QStringLiteral("/usr/share/applications/"); - QDir appsDir(dir); - m_parser.processDirectory(appsDir); #endif initAppMap();