From 9991e2ab91aae2c177f6e100eacff14e6087e662 Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 8 Sep 2021 11:04:21 +0800 Subject: [PATCH] SystemAppMonitor: Skip terminal app --- src/systemappmonitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systemappmonitor.cpp b/src/systemappmonitor.cpp index a4d7341..535e4dc 100644 --- a/src/systemappmonitor.cpp +++ b/src/systemappmonitor.cpp @@ -113,6 +113,9 @@ void SystemAppMonitor::addApplication(const QString &filePath) desktop.setIniCodec("UTF-8"); desktop.beginGroup("Desktop Entry"); + if (desktop.value("Terminal").toBool()) + return; + if (desktop.contains("OnlyShowIn")) { const QString &value = desktop.value("OnlyShowIn").toString(); if (!value.contains(detectDesktopEnvironment(), Qt::CaseInsensitive)) {