Make a few more debug changes

This commit is contained in:
zontreck 2024-05-24 18:36:34 -07:00
parent 6eb8d78036
commit ff94b3a0b1
2 changed files with 5 additions and 2 deletions

View file

@ -58,7 +58,8 @@ Future<void> runDetachedProton(
StateMachine.PROC = await Process.start(settings.getProtonExecutablePath(),
args, // Run arbitrary command with arguments
environment: env,
workingDirectory: workingDir);
workingDirectory: workingDir,
mode: ProcessStartMode.normal);
StateMachine.monitorProcess();
} catch (e) {

View file

@ -110,7 +110,9 @@ class StateMachine {
Timer.periodic(Duration(seconds: 30), (timer) {
timer.cancel();
PROC!.kill();
print("Sending killswitch to server");
PROC!.kill(ProcessSignal.sigkill);
});
changeState(States.Inactive);