main.cpp: Improvements

This commit is contained in:
Nicolas Mailloux 2023-07-20 22:52:52 -04:00
parent 914618c95c
commit cf7b355134

View file

@ -66,7 +66,13 @@ int main(int argc, char *argv[])
QFile::remove("/tmp/rescan_userapps"); QFile::remove("/tmp/rescan_userapps");
log("Re-scanning user applications from explicit request", "main"); log("Re-scanning user applications from explicit request", "main");
writeFile("/opt/ibxd", "gui_apps_stop\n"); writeFile("/opt/ibxd", "gui_apps_stop\n");
QThread::msleep(1000); while(true) {
if(QFile::exists("/tmp/gui_apps_stopped")) {
log("there");
QFile::remove("/tmp/gui_apps_stopped");
break;
}
}
writeFile("/opt/ibxd", "gui_apps_start\n"); writeFile("/opt/ibxd", "gui_apps_start\n");
while(true) { while(true) {
if(QFile::exists("/tmp/gui_apps_started")) { if(QFile::exists("/tmp/gui_apps_started")) {