mirror of
https://github.com/feather-wallet/feather.git
synced 2025-05-05 18:22:14 +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()) {
|
if (TailsOS::detect()) {
|
||||||
|
#ifdef SELF_CONTAINED
|
||||||
QString path = []{
|
QString path = []{
|
||||||
// Starting in 1.1.0 the wallet and config directory were moved from ./.feather to ./feather_data
|
// 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
|
// A user might accidentally delete the folder containing the file hidden folder after moving the AppImage
|
||||||
|
@ -194,6 +195,11 @@ QString defaultWalletDir() {
|
||||||
}();
|
}();
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
|
#else
|
||||||
|
if (TailsOS::detectDataPersistence()) {
|
||||||
|
return QDir::homePath() + "/Persistent/feather_data/wallets";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX) or defined(Q_OS_MAC)
|
#if defined(Q_OS_LINUX) or defined(Q_OS_MAC)
|
||||||
|
|
|
@ -222,6 +222,7 @@ QDir Config::defaultConfigDir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TailsOS::detect()) {
|
if (TailsOS::detect()) {
|
||||||
|
#ifdef SELF_CONTAINED
|
||||||
QString path = []{
|
QString path = []{
|
||||||
QString appImagePath = qgetenv("APPIMAGE");
|
QString appImagePath = qgetenv("APPIMAGE");
|
||||||
if (appImagePath.isEmpty()) {
|
if (appImagePath.isEmpty()) {
|
||||||
|
@ -241,6 +242,11 @@ QDir Config::defaultConfigDir() {
|
||||||
}();
|
}();
|
||||||
|
|
||||||
return QDir(path);
|
return QDir(path);
|
||||||
|
#else
|
||||||
|
if (TailsOS::detectDataPersistence()) {
|
||||||
|
return QDir::homePath() + "/Persistent/feather_data";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
|
|
Loading…
Reference in a new issue