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
Support chrome 'flags' and all command line options? #18253
Comments
Looks like it 'might' be able to do this now with --enable-feature= but I don't have a list of features to test it out with. |
Chrome features that are flagged can be enabled / disabled with Other cli flags can also be provided. You do both of these through the command line API https://github.com/electron/electron/blob/master/docs/api/command-line.md |
I'm trying to manupilate these two flags inside Chrome, but it seems that these flags don't have corresponding cli flags. The flags I've encontered are I've searched it a lot but didn't find solution or workaround. Thanks |
Any solution for this ? |
@mingjun97 in case you are still wandering, and someone searching for this issue, I found a workaround: Open some task manager, you should be able to see many renderer processes of chrome, and their command lines, take a screenshot or copy one of those, especially Then disable/enable desired flags in chrome, restart chrome, and copy those command line again: In my case, It is Add them using app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService'); before |
You don't need to use the task manager - just go to |
How can I enable experimental web assembly features? |
Is there a way to pass this on the command line itself rather than in the source code? I'm wanting to pass --window-size=1024,640 --force-device-scale-factor=1.25 --device-scale-factor=1.25 Into an existing application but have been unsuccessful |
Hi @MarshallOfSound Any idea how we can enable Chrome policy via the command line, for example, enable CloudAPAuthEnabled, or needs to request that as a feature to support it by Thanks in advance! |
Preflight Checklist
Problem Description
I'd like to have more control over the chrome renderer including flags and command line options.
There are experimental features of chrome I would like to play with.
These can be accessed in a browser as chrome://flags but this URL doesn't work with Electron.
Additionally there are command line arguments I'd like to specify like '--disable-site-isolation-trials' which would allow me to work around a bug that impact Electron right now.
The text was updated successfully, but these errors were encountered: