diff --git a/src/tools/launcher/applauncherwidget.cpp b/src/tools/launcher/applauncherwidget.cpp index c3e1f30..3f5205c 100644 --- a/src/tools/launcher/applauncherwidget.cpp +++ b/src/tools/launcher/applauncherwidget.cpp @@ -23,6 +23,7 @@ #include #include #include +#include namespace { @@ -74,6 +75,15 @@ AppLauncherWidget::AppLauncherWidget(const QPixmap& p, QWidget* parent) m_parser.processDirectory(QDir(appsDir)); } + const char *USER = secure_getenv("USER"); + QString dirUser = "/etc/profiles/per-user/" + QString::fromUtf8(USER) + "/share/applications/"; + QDir appsDirUser(dirUser); + m_parser.processDirectory(appsDirUser); + + QString dir = QStringLiteral("/run/current-system/sw/share/applications/"); + QDir appsDir(dir); + m_parser.processDirectory(appsDir); + #endif initAppMap();