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;