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

using --browser-command with parameters #916

Open
moafak opened this issue Mar 30, 2023 · 1 comment
Open

using --browser-command with parameters #916

moafak opened this issue Mar 30, 2023 · 1 comment
Labels
question Further information is requested

Comments

@moafak
Copy link

moafak commented Mar 30, 2023

Describe the question

How to set --browser-command with parameters for the browser?

To reproduce

Setting --browser-command=google-chrome works fine,
however passing parameters to it is not working e.g. google-chrome --profile-directory='Profile 1'

error: could not open the browser: exec: "google-chrome --profile-directory='Profile 1'": executable file not found in $PATH

Please visit the following URL in your browser manually: http://localhost:8000

Your environment

  • OS: Pop os
  • kubelogin version: v1.27.0
  • kubectl version: v1.26.0
@moafak moafak added the question Further information is requested label Mar 30, 2023
@harpunius
Copy link

harpunius commented Sep 27, 2024

Same problem on macOS using kubelogin version v1.30.1. Here's a dummy example:

kubectl oidc-login setup --oidc-issuer-url https://accounts.google.com --oidc-client-id REDACTED --oidc-client-secret REDACTED --browser-command="/Applications/Firefox.app/Contents/MacOS/firefox --new-window"
authentication in progress...
error: could not open the browser: fork/exec /Applications/Firefox.app/Contents/MacOS/firefox --new-window: no such file or directory

while /Applications/Firefox.app/Contents/MacOS/firefox --new-window works just fine from the same terminal.

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

No branches or pull requests

2 participants