mirror of
https://github.com/feather-wallet/feather.git
synced 2025-04-16 18:01:54 +00:00
tails: write to persistent storage for system packages
This commit is contained in:
parent
7da4e90593
commit
ce95959c1d
2 changed files with 12 additions and 0 deletions
src/utils
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue