tails: write to persistent storage for system packages

This commit is contained in:
tobtoht 2025-03-24 09:55:29 +01:00
parent 7da4e90593
commit ce95959c1d
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
2 changed files with 12 additions and 0 deletions

View file

@ -171,6 +171,7 @@ QString defaultWalletDir() {
}
if (TailsOS::detect()) {
#ifdef SELF_CONTAINED
QString path = []{
// Starting in 1.1.0 the wallet and config directory were moved from ./.feather to ./feather_data
// A user might accidentally delete the folder containing the file hidden folder after moving the AppImage
@ -194,6 +195,11 @@ QString defaultWalletDir() {
}();
return path;
#else
if (TailsOS::detectDataPersistence()) {
return QDir::homePath() + "/Persistent/feather_data/wallets";
}
#endif
}
#if defined(Q_OS_LINUX) or defined(Q_OS_MAC)

View file

@ -222,6 +222,7 @@ QDir Config::defaultConfigDir() {
}
if (TailsOS::detect()) {
#ifdef SELF_CONTAINED
QString path = []{
QString appImagePath = qgetenv("APPIMAGE");
if (appImagePath.isEmpty()) {
@ -241,6 +242,11 @@ QDir Config::defaultConfigDir() {
}();
return QDir(path);
#else
if (TailsOS::detectDataPersistence()) {
return QDir::homePath() + "/Persistent/feather_data";
}
#endif
}
#if defined(Q_OS_WIN)