fix:In English mode, if you search for Peony or Terminal, you will not find the correct application

link:http://172.17.66.192/biz/bug-view-42345.html
This commit is contained in:
sunfengsheng 2021-03-11 15:12:26 +08:00
parent af02c8d613
commit 08039bebf8
1 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ void AppMatch::getAllDesktopFilePath(QString path){
//过滤LXQt、KDE //过滤LXQt、KDE
QString filePathStr=fileInfo.filePath(); QString filePathStr=fileInfo.filePath();
if(filePathStr.contains("KDE",Qt::CaseInsensitive)|| if(filePathStr.contains("KDE",Qt::CaseInsensitive)||
filePathStr.contains("mate",Qt::CaseInsensitive)|| // filePathStr.contains("mate",Qt::CaseInsensitive)||
filePathStr.contains("LX",Qt::CaseInsensitive) ){ filePathStr.contains("LX",Qt::CaseInsensitive) ){
i++; i++;
continue; continue;
@ -214,7 +214,7 @@ void AppMatch::getDesktopFilePath()
m_filePathList.append("/usr/share/applications/peony-computer.desktop"); m_filePathList.append("/usr/share/applications/peony-computer.desktop");
m_filePathList.append("/usr/share/applications/peony-home.desktop"); m_filePathList.append("/usr/share/applications/peony-home.desktop");
m_filePathList.append("/usr/share/applications/peony-trash.desktop"); m_filePathList.append("/usr/share/applications/peony-trash.desktop");
m_filePathList.append("/usr/share/applications/peony.desktop"); // m_filePathList.append("/usr/share/applications/peony.desktop");
//v10 //v10
m_filePathList.append("/usr/share/applications/mate-about.desktop"); m_filePathList.append("/usr/share/applications/mate-about.desktop");