From 1620ff9f7d5f8d992b3a8a4fe26ca024d4fce73d Mon Sep 17 00:00:00 2001 From: Toki Date: Sat, 28 Jan 2023 03:24:10 +0900 Subject: [PATCH] linux debug --- lib/utils/os_startup.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils/os_startup.dart b/lib/utils/os_startup.dart index e340bce..b3fbe81 100644 --- a/lib/utils/os_startup.dart +++ b/lib/utils/os_startup.dart @@ -193,7 +193,8 @@ WantedBy=default.target"""; var c = Completer(); var exist = false; var userPath = Platform.environment['HOME'] as String; - exist = await File('$userPath/.config/systemd/user/$label').exists(); + exist = + await File('$userPath/.config/systemd/user/$label.service').exists(); c.complete(exist); return c.future; } @@ -250,7 +251,7 @@ WantedBy=default.target"""; if (success) { success = false; - var file = File('$systemPath/$label'); + var file = File('$systemPath/$label.service'); if (await file.exists()) { await file.delete(); success = true;