diff --git a/src/launchermodel.cpp b/src/launchermodel.cpp index 16175a0..56dfdeb 100755 --- a/src/launchermodel.cpp +++ b/src/launchermodel.cpp @@ -262,10 +262,10 @@ void LauncherModel::addApp(const QString &fileName) return; if (desktop.contains("OnlyShowIn")) { - const QString &value = desktop.value("OnlyShowIn").toString(); - if (!value.contains(detectDesktopEnvironment(), Qt::CaseInsensitive)) { + const QStringList items = desktop.value("OnlyShowIn").toString().split(';'); + + if (!items.contains(detectDesktopEnvironment())) return; - } } if (desktop.value("NoDisplay").toBool() ||