Add callback handler for bookconfig_mount

Sorry for the date mess, I'm in a car and sometimes my homebrew
Raspberry Pi 400/Kindle computer-screen-keyboard breaks  and reboots,
thus resetting the date.
This commit is contained in:
Nicolas Mailloux 2021-08-16 17:35:53 -04:00
parent f895a368ac
commit df5791ce44

View file

@ -174,6 +174,12 @@ reader::reader(QWidget *parent) :
// Calling InkBox daemon (ibxd) via FIFO interface to run bookconfig_mount
string_writeconfig("/opt/ibxd", "bookconfig_mount\n");
// Callback handler to wait until bookconfig_mount has finished execution
while(true) {
if(QFile::exists("/inkbox/bookConfigSetUp")) {
break;
}
}
// Custom settings
// Font