diff --git a/main.cpp b/main.cpp index 6ffa3be..ffcc9dd 100644 --- a/main.cpp +++ b/main.cpp @@ -173,12 +173,7 @@ int main(int argc, char *argv[]) } else { - if(checkconfig("/inkbox/bookIsEpub") == true) { - global::reader::bookIsEpub = true; - } - else { - global::reader::bookIsEpub = false; - } + QProcess::execute("remount_tmpfs_launch.sh", QStringList()); QApplication a(argc, argv); MainWindow w; diff --git a/reader.cpp b/reader.cpp index cb9362d..8ea9154 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1878,6 +1878,7 @@ void reader::getTotalEpubPagesNumber() { string_checkconfig_ro("/run/epub_total_pages_number"); totalPagesInt = checkconfig_str_val.toInt(); + QFile::remove("/run/epub_total_pages_number"); } void reader::on_gotoBtn_clicked() @@ -2120,6 +2121,7 @@ void reader::getTotalPdfPagesNumber() { string_checkconfig_ro("/run/pdf_total_pages_number"); totalPagesInt = checkconfig_str_val.toInt(); + QFile::remove("/run/pdf_total_pages_number"); } void reader::on_pdfScaleSlider_valueChanged(int value)