linux debug

This commit is contained in:
Toki 2023-01-28 03:24:10 +09:00
parent cd58bfae55
commit 1620ff9f7d

View file

@ -193,7 +193,8 @@ WantedBy=default.target""";
var c = Completer<bool>();
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;