SystemAppMonitor: Skip terminal app
This commit is contained in:
parent
ffe9852909
commit
9991e2ab91
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ void SystemAppMonitor::addApplication(const QString &filePath)
|
||||||
desktop.setIniCodec("UTF-8");
|
desktop.setIniCodec("UTF-8");
|
||||||
desktop.beginGroup("Desktop Entry");
|
desktop.beginGroup("Desktop Entry");
|
||||||
|
|
||||||
|
if (desktop.value("Terminal").toBool())
|
||||||
|
return;
|
||||||
|
|
||||||
if (desktop.contains("OnlyShowIn")) {
|
if (desktop.contains("OnlyShowIn")) {
|
||||||
const QString &value = desktop.value("OnlyShowIn").toString();
|
const QString &value = desktop.value("OnlyShowIn").toString();
|
||||||
if (!value.contains(detectDesktopEnvironment(), Qt::CaseInsensitive)) {
|
if (!value.contains(detectDesktopEnvironment(), Qt::CaseInsensitive)) {
|
||||||
|
|
Loading…
Reference in a new issue