Commit ebd2acd9 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[libtaskmanager] Don't allow to launch a new instance for some single-window apps

Gnome has a hint in the desktop files whether an app is single-window that they use for this purpose
parent c23c7c16
Pipeline #114320 passed with stage
in 7 minutes and 14 seconds
......@@ -783,6 +783,10 @@ bool canLauchNewInstance(const AppData &appData)
if (service->noDisplay()) {
return false;
}
if (service->property(QStringLiteral("X-GNOME-SingleWindow"), QVariant::Bool).toBool()) {
return false;
}
}
return true;
......
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