-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch the app via open cmd on macOS #102975
Comments
@deepak1556 we have to be careful to still support our command line flags. Here is a simple test that fails if we switch to
See also some related discussion in #60579 //cc @joaomoreno |
@bpasero the open command is only meant to be used for spawning the final app executable https://github.com/microsoft/vscode/blob/master/src/vs/code/node/cli.ts#L331, it is not meant to replace the cli wrapper which respects those command line arguments.
|
@deepak1556 oh I see! |
LGTM! |
Might also be related to #60579 |
Thanks @segevfiner , definitely is related to this issue. |
Will this work with the |
Currently some users hit an issue where the app launched from command line doesn't have an active dock icon, menu and the window cannot be focused.
Thanks for help from @MarshallOfSound with the debugging we were able to narrow the source of issue. The cli wrapper is a node process which then spawns the actual app https://github.com/microsoft/vscode/blob/master/src/vs/code/node/cli.ts#L331 , this doesn't work well with entitlements. Can read for some background about inherited entitlements #95062 (comment) .
The underlying issue is not known here but we expect some sort of malformed state has been entered by the entitled app. To fix this we can adjust the spawn callsite with a call to macOS
open
cmd.The text was updated successfully, but these errors were encountered: