mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 19:55:52 +00:00
WIP: proper home directory location for linux
This commit is contained in:
parent
3ee0e97628
commit
8b7e222d41
1 changed files with 11 additions and 1 deletions
|
@ -85,10 +85,20 @@ void main() async {
|
||||||
if (Platform.isIOS) {
|
if (Platform.isIOS) {
|
||||||
appDirectory = (await getLibraryDirectory());
|
appDirectory = (await getLibraryDirectory());
|
||||||
}
|
}
|
||||||
if (Platform.isLinux || Logging.isArmLinux) {
|
|
||||||
|
if (Logging.isArmLinux) {
|
||||||
appDirectory = Directory("${appDirectory.path}/.stackwallet");
|
appDirectory = Directory("${appDirectory.path}/.stackwallet");
|
||||||
await appDirectory.create();
|
await appDirectory.create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Platform.isLinux) {
|
||||||
|
appDirectory = Directory("${Platform.environment['HOME']}/.stackwallet");
|
||||||
|
|
||||||
|
if (!appDirectory.existsSync()) {
|
||||||
|
await appDirectory.create();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
// FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
|
||||||
if (!(Logging.isArmLinux || Logging.isTestEnv)) {
|
if (!(Logging.isArmLinux || Logging.isTestEnv)) {
|
||||||
final isar = await Isar.open(
|
final isar = await Isar.open(
|
||||||
|
|
Loading…
Reference in a new issue