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

Allow passing chrome binary path via environment variable #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

euporos
Copy link

@euporos euporos commented Oct 24, 2023

I've been exploring cuic on NixOS, which doesn't adhere to the standard file system hierarchy, making the hard-coded paths in cuic.chrome problematic. This PR introduces the ability to specify the path to the Chrome binary using an environment variable.

This feature isn't just beneficial for NixOS users. Allowing users to point to a specific Chrome binary can be useful for testing against upcoming, unreleased versions of Chrome or pinning a specific version for consistent testing (e.g., using the Nix package manager on MacOS).

This allows cuic to find the chrome binary on Systems that do not
follow any standard file system hierarchy.
@euporos
Copy link
Author

euporos commented Oct 24, 2023

Addendum: Feel free to change the variable name.

@euporos
Copy link
Author

euporos commented Oct 24, 2023

Talk about bad timing… just now I read in the docs that it's actually possible to pass the binary. This might still be useful, but much less necessary than I thought it would be.

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

Successfully merging this pull request may close these issues.

1 participant