Selection of browser target binary and profile #186
-
In the sourcecode for this package there is a mention, that we can pass a web-ext config to change for example the chromium or firefox binary, which will be used to install and run the extension in (https://github.com/mozilla/web-ext/blob/666886f40a967b515d43cf38fc9aec67ad744d89/src/program.js#L559). However after changing these Variables around and trying to get to load google-chrome with a specific profile by settings the binary of Google Chrome and the path to the profile on my mac book, when running With that profile it's hard to test the extension because of missing logins etc. I also logged the web-ext config in the sourcecode of this package and it seems to correctly set that, so I am really confused on how I can customize the browser launching behaviours |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The solution was that despite the blob saying the flag is |
Beta Was this translation helpful? Give feedback.
-
I encountered the same problem. And it is not working correctly. So what should I do next? I'm looking forward to someone's help and thank you very much! The following is my configuration: export default defineConfig({
plugins: [
webExtension({
manifest: generateManifest,
watchFilePaths: ["package.json", "manifest.json"],
webExtConfig: {
chromiumBinary: "/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome",
args: [
"--user-data-dir=~/Library/Application\ Support/Google/Chrome/Default",
'--profile-directory=~/Library/Application\ Support/Google/Chrome'
],
}
}),
],
}); |
Beta Was this translation helpful? Give feedback.
The solution was that despite the blob saying the flag is
chromium-binary
you need to usechromiumBinary
in order to set a specific binary. I simply set a profile name andcreateProfileIfMissing
to then keep the changes inside that profile like logins etc