Safety measure: remount tmpfs

This commit is contained in:
Nicolas Mailloux 2021-06-29 00:55:44 -04:00
parent 19f31e1d44
commit 46dd4bd8f0

View file

@ -333,6 +333,9 @@ reader::reader(QWidget *parent) :
// Checking if we're waking from sleep; if so, do nothing there because the book should already have been parsed
if(wakeFromSleep != true) {
// Remount tmpfs
string_writeconfig("/inkbox/remount", "true");
// Counting number of parsed files
split_total = setup_book(book_file, 0, true);
split_files_number = split_total;
@ -895,6 +898,8 @@ void reader::on_homeBtn_clicked()
{
// We're leaving reading mode
string_writeconfig("/tmp/inkboxReading", "false");
// Remount tmpfs
string_writeconfig("/inkbox/remount", "true");
// Relaunching process
quit_restart();