Can search kde,mate,LX

This commit is contained in:
sunfengsheng 2021-05-19 09:58:57 +08:00
parent 18442feb70
commit ed62e618d0
1 changed files with 5 additions and 5 deletions

View File

@ -102,12 +102,12 @@ void AppMatch::getAllDesktopFilePath(QString path) {
} else {
//过滤LXQt、KDE
QString filePathStr = fileInfo.filePath();
if(filePathStr.contains("KDE", Qt::CaseInsensitive) ||
// if(filePathStr.contains("KDE", Qt::CaseInsensitive) ||
// filePathStr.contains("mate",Qt::CaseInsensitive)||
filePathStr.contains("LX", Qt::CaseInsensitive)) {
i++;
continue;
}
// filePathStr.contains("LX", Qt::CaseInsensitive)) {
// i++;
// continue;
// }
//过滤后缀不是.desktop的文件
if(!filePathStr.endsWith(".desktop")) {
i++;