Update app-match.cpp

This commit is contained in:
iaom 2021-03-05 09:59:55 +08:00 committed by GitHub
parent 0f9f1b90cd
commit fe7850b3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ AppMatch::AppMatch(QObject *parent) : QThread(parent)
{
m_watchAppDir=new QFileSystemWatcher(this);
m_watchAppDir->addPath("/usr/share/applications/");
//This part is not right!!!!!!!!!----iaom
connect(m_watchAppDir,&QFileSystemWatcher::directoryChanged,[this](){
this->getDesktopFilePath();
this->getAllDesktopFilePath("/usr/share/applications/");