feat: Can emit correct remove signal when uninstalling applications patched by deepin-deb-fix
check TryExec when doReloadApplications add deepin-deb-fix to Suggested dependency
This commit is contained in:
		@ -650,6 +650,11 @@ void ApplicationManager1Service::doReloadApplications()
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (destApp != m_applicationList.cend() and apps.contains(destApp.key())) {
 | 
			
		||||
                // Can emit correct remove signal when uninstalling applications patched by deepin-deb-fix
 | 
			
		||||
                if (ApplicationFilter::tryExecCheck(*(destApp->data()->m_entry))) {
 | 
			
		||||
                    qDebug() << info.absolutePath() << "Checked TryExec failed and will be removed";
 | 
			
		||||
                    return false;
 | 
			
		||||
                }
 | 
			
		||||
                apps.removeOne(destApp.key());
 | 
			
		||||
                updateApplication(destApp.value(), std::move(file));
 | 
			
		||||
                return false;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user