Skip to content
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

Set custom Display (or any .env) variable for Chrome #285

Open
NN-Binary opened this issue Jul 14, 2024 · 1 comment
Open

Set custom Display (or any .env) variable for Chrome #285

NN-Binary opened this issue Jul 14, 2024 · 1 comment

Comments

@NN-Binary
Copy link

Hi!

I would like to attach individually, for each chrome instance, a different Display.
Using puppeteer is easy:
https://github.com/puppeteer/puppeteer/blob/84712cbc28e3993668aa57e7bb639c8e2e6d821e/src/node/LaunchOptions.ts#L114

puppeteer.launch(
    ...,
    env: {
        ...,
        DISPLAY: ":10.0"
    }
)

How can I do something similar? I want to have a different set of .env per "profile"

Thank you!

@blakebyrnes
Copy link
Contributor

Thanks for the request! We don't have this feature at the moment. I would think this is a plugin and we will likely need to add a simple hook that allows supplying env vars through to Browser.ts and BrowserProcess.ts in unblocked/agent. Happy to take a PR if you want to take the lead on this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants