Commit 1b70104f authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Usually applications won't be compulsory for a desktop

parent 6cc89e06
......@@ -127,7 +127,8 @@ QUrl AppPackageKitResource::homepage()
bool AppPackageKitResource::isTechnical() const
{
static QString desktop = QString::fromUtf8(qgetenv("XDG_CURRENT_DESKTOP"));
return !m_appdata.compulsoryForDesktops().contains(desktop);
const auto desktops = m_appdata.compulsoryForDesktops();
return !desktops.isEmpty() && !desktops.contains(desktop);
}
void AppPackageKitResource::fetchScreenshots()
......
Markdown is supported
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