mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
Safety measure: remount tmpfs
This commit is contained in:
parent
19f31e1d44
commit
46dd4bd8f0
1 changed files with 5 additions and 0 deletions
|
@ -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
|
// Checking if we're waking from sleep; if so, do nothing there because the book should already have been parsed
|
||||||
if(wakeFromSleep != true) {
|
if(wakeFromSleep != true) {
|
||||||
|
// Remount tmpfs
|
||||||
|
string_writeconfig("/inkbox/remount", "true");
|
||||||
|
|
||||||
// Counting number of parsed files
|
// Counting number of parsed files
|
||||||
split_total = setup_book(book_file, 0, true);
|
split_total = setup_book(book_file, 0, true);
|
||||||
split_files_number = split_total;
|
split_files_number = split_total;
|
||||||
|
@ -895,6 +898,8 @@ void reader::on_homeBtn_clicked()
|
||||||
{
|
{
|
||||||
// We're leaving reading mode
|
// We're leaving reading mode
|
||||||
string_writeconfig("/tmp/inkboxReading", "false");
|
string_writeconfig("/tmp/inkboxReading", "false");
|
||||||
|
// Remount tmpfs
|
||||||
|
string_writeconfig("/inkbox/remount", "true");
|
||||||
|
|
||||||
// Relaunching process
|
// Relaunching process
|
||||||
quit_restart();
|
quit_restart();
|
||||||
|
|
Loading…
Reference in a new issue