Skip to content

Commit

Permalink
Update launch.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Oct 10, 2024
1 parent ee1224e commit b085135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default async function (options: LaunchOptions) {

// Set the appropriate command based on the platform
if (PLATFORM === 'windows') runExecutableCommand = 'start';
else if (PLATFORM === 'linux') runExecutableCommand = 'xdg-open';
else if (PLATFORM === 'linux') runExecutableCommand = args.shift() // Run executable directly on Linux
else if (PLATFORM === 'mac') args.splice(1, 0, "--args") // macOS-specific flag to pass additional arguments

await spawnProcess(runExecutableCommand, args, { env: process.env }); // Share the same environment variables
Expand Down

0 comments on commit b085135

Please sign in to comment.