diff --git a/lib/main.dart b/lib/main.dart index 7f7c4a44d..c88ae2164 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -85,10 +85,20 @@ void main() async { if (Platform.isIOS) { appDirectory = (await getLibraryDirectory()); } - if (Platform.isLinux || Logging.isArmLinux) { + + if (Logging.isArmLinux) { appDirectory = Directory("${appDirectory.path}/.stackwallet"); await appDirectory.create(); } + + if (Platform.isLinux) { + appDirectory = Directory("${Platform.environment['HOME']}/.stackwallet"); + + if (!appDirectory.existsSync()) { + await appDirectory.create(); + } + } + // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding); if (!(Logging.isArmLinux || Logging.isTestEnv)) { final isar = await Isar.open(