startLaunch method
- GhosttyTerminalShellLaunch launch
Starts a resolved launch plan and stores its metadata on the controller.
Implementation
Future<void> startLaunch(GhosttyTerminalShellLaunch launch) async {
await start(
shell: launch.shell,
arguments: launch.arguments,
environment: launch.environment,
);
_activeShellLaunch = _freezeLaunch(launch);
final setupCommand = launch.setupCommand;
if (setupCommand != null && setupCommand.isNotEmpty) {
await Future<void>.delayed(const Duration(milliseconds: 120));
write(setupCommand);
await Future<void>.delayed(const Duration(milliseconds: 120));
}
_markDirty();
}