Switch to using xvfb-run

This commit is contained in:
zontreck 2024-05-25 15:22:33 -07:00
parent 6d9fdb984b
commit e6736842e9

View file

@ -55,8 +55,10 @@ Future<void> runDetachedProton(
List<String> args = ["run", command];
args.addAll(argx);
StateMachine.PROC = await Process.start(settings.getProtonExecutablePath(),
args, // Run arbitrary command with arguments
StateMachine.PROC = await Process.start(
"xvfb-run",
["--auto-servernum", settings.getProtonExecutablePath()] +
args, // Run arbitrary command with arguments
environment: env,
workingDirectory: workingDir,
mode: ProcessStartMode.normal);