Commit 8a6732d1 authored by David Edmundson's avatar David Edmundson
Browse files

Filter our services in the application slice which don't match the app string specifier

An upcoming systemd change puts all services in the app slice by default. We don't
necessarily want to list all of these as applications.
parent bf2d0ece
......@@ -37,5 +37,5 @@ bool ApplicationDataModel::filterAcceptsCGroup(const QString &id)
// this class is all temporary. In the future as per https://systemd.io/DESKTOP_ENVIRONMENTS/
// all apps will have a managed by a drop-in that puts apps in the app.slice
// when this happens adjust the root above and drop this filterAcceptsCGroup line
return id.contains(QLatin1String("/app")) || (id.contains(QLatin1String("/flatpak")) && id.endsWith(QLatin1String("scope")));
return id.contains(QLatin1String("/app-")) || (id.contains(QLatin1String("/flatpak")) && id.endsWith(QLatin1String("scope")));
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment