From 152a537f5a5b810858864723264f5c6dea66cb97 Mon Sep 17 00:00:00 2001 From: reionwong Date: Wed, 18 Aug 2021 16:07:53 +0800 Subject: [PATCH] Open mode applications skip terminal --- mimetype/mimeappmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mimetype/mimeappmanager.cpp b/mimetype/mimeappmanager.cpp index a4f4357..ce1a80a 100644 --- a/mimetype/mimeappmanager.cpp +++ b/mimetype/mimeappmanager.cpp @@ -91,6 +91,9 @@ void MimeAppManager::initApplications() if (!desktopFile.valid()) continue; + if (desktopFile.value("Terminal").toBool()) + continue; + m_desktopFiles.append(filePath); m_desktopObjects.insert(filePath, desktopFile);