diff --git a/src/main.cpp b/src/main.cpp index a123c2c..6d4e3d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,7 +66,13 @@ int main(int argc, char *argv[]) QFile::remove("/tmp/rescan_userapps"); log("Re-scanning user applications from explicit request", "main"); 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"); while(true) { if(QFile::exists("/tmp/gui_apps_started")) {