linux debug
This commit is contained in:
parent
cd58bfae55
commit
1620ff9f7d
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue