Portable mode: accept 'portable.txt'

This commit is contained in:
tobtoht
2022-05-22 19:52:03 +02:00
parent 52705375be
commit 4fcf746c3a
3 changed files with 15 additions and 6 deletions
+3 -3
View File
@@ -168,9 +168,9 @@ Config::Config(QObject* parent)
}
QDir Config::defaultConfigDir() {
QString portablePath = QCoreApplication::applicationDirPath().append("/%1");
if (QFile::exists(portablePath.arg(".portable")) || QFile::exists(portablePath.arg(".portable.txt"))) {
return portablePath.arg("feather_data");
QString portablePath = QCoreApplication::applicationDirPath();
if (Utils::portableFileExists(portablePath)) {
return portablePath + "/feather_data";
}
if (TailsOS::detect()) {