feat: Add a hook and wrap all applications in the hook script to start

Add a hook to solve the problem of not being able to start some startup scripts for applications without shebang

Log
This commit is contained in:
zhangkun
2024-04-29 14:32:54 +08:00
committed by Comix
parent 089cb6155a
commit 18720ef75a
5 changed files with 53 additions and 2 deletions

View File

@ -650,7 +650,7 @@ 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
// Can emit correct remove signal when uninstalling applications
if (ApplicationFilter::tryExecCheck(*(destApp->data()->m_entry))) {
qDebug() << info.absolutePath() << "Checked TryExec failed and will be removed";
return false;