feat: support launch at startup (#532)

This commit is contained in:
Levi authored and GitHub committed 2024-05-14 19:23:29 +08:00
1 parent be9583be0f
commit d1a5ed8b3d
12 files changed
+118 -21

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ class Util {
static Future<void> initStorageDir() async {
var storageDir = "";
if (Util.isWindows()) {
storageDir = "./";
storageDir = File(Platform.resolvedExecutable).parent.path;
} else if (!Util.isWeb()) {
if (Util.isLinux()) {
storageDir = File(Platform.resolvedExecutable).parent.path;