Is openChrome.applescript needed? #19277
-
This is definitely a trivial issue, but I was surprised when I launched my browser from the OSX terminal that Chrome was opened. Moving/renaming vite/bin/openChrome.applescript out of the way allows my default browser to open. Following the principle of least astonishment, it seems preferable that vite on the osx terminal launch my default browser if my environment has not been set. Since we also have the ability to set up a specific browser and pass it arguments, is the openChrome.applescript file needed? Does it do something special? |
Beta Was this translation helpful? Give feedback.
Answered by
patak-dev
Jan 23, 2025
Replies: 1 comment 3 replies
-
See // If we're on OS X, the user hasn't specifically
// requested a different browser, we can try opening
// a Chromium browser with AppleScript. This lets us reuse an
// existing tab when possible instead of creating a new one. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
spartanicus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
vite/packages/vite/src/node/server/openBrowser.ts
Line 99 in bf3e410