From a7e04fd2d64a61cf5fc395a260f8fa17ceef0c50 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Sun, 20 Feb 2022 15:11:00 -0500 Subject: [PATCH] Stop EncFS service before launching KoBox --- koboxappsdialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koboxappsdialog.cpp b/koboxappsdialog.cpp index 3e83a35..869c578 100644 --- a/koboxappsdialog.cpp +++ b/koboxappsdialog.cpp @@ -165,10 +165,16 @@ void koboxAppsDialog::on_launchBtn_clicked() // Re-use USBMS splash window for KoBox splash, since it's pretty much the same layout usbmsSplashWindow = new usbms_splash(); usbmsSplashWindow->setAttribute(Qt::WA_DeleteOnClose); - usbmsSplashWindow->setGeometry(QRect(QPoint(0,0), screen()->geometry ().size())); + usbmsSplashWindow->setGeometry(QRect(QPoint(0,0), screen()->geometry().size())); 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"); }