Stop EncFS service before launching KoBox

This commit is contained in:
Nicolas Mailloux 2022-02-20 15:11:00 -05:00
parent 035ab14e5f
commit a7e04fd2d6

View file

@ -169,6 +169,12 @@ void koboxAppsDialog::on_launchBtn_clicked()
usbmsSplashWindow->show();
QApplication::processEvents();
// Stop EncFS/Encrypted storage
if(checkconfig("/external_root/run/encfs_mounted") == true) {
string_writeconfig("/external_root/run/encfs_stop_cleanup", "true");
string_writeconfig("/opt/ibxd", "encfs_stop\n");
}
// Write to FIFO to start X11
string_writeconfig("/opt/ibxd", "x_start_gui\n");
}