Skip to content

Commit d910a14

Browse files
committed
fix: add shell option for opening browser on Windows
1 parent 1beb821 commit d910a14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/live-utils/start-session.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function openBrowser(launchUrl: string): void {
140140
const child = childProcess.spawn(command[0], command.slice(1), {
141141
stdio: "ignore",
142142
detached: true,
143+
...(process.platform === "win32" ? { shell: true } : {}),
143144
});
144145
child.on("error", (err) =>
145146
logger.error(`Failed to open browser: ${err}. URL: ${launchUrl}`),

0 commit comments

Comments
 (0)