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

Google Chrome and Chromium-based browsers don't open for profiles containing slashes in their name #524

Closed
chrnorm opened this issue Oct 20, 2023 · 0 comments · Fixed by #525
Labels
bug Something isn't working

Comments

@chrnorm
Copy link
Contributor

chrnorm commented Oct 20, 2023

If a profile contains slashes in the name, like assume -c my/profile, Chrome will not open. This is because of the args that are passed to Chrome:

/usr/bin/google-chrome-stable --profile-directory=my/profile --no-first-run --no-default-browser-check https://signin.aws.amazon.com/federation?Action=login&Destination=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3Fregion%3Dus-east-1&Issuer=&SigninToken=

We don't escape the slashes in the --profile-directory arg, which I suspect is causing it to fail as the my directory doesn't exist in my example above.

To solve this we need to escape slashes in --profile-directory - we can replace them with - instead in the argument. e.g.

/usr/bin/google-chrome-stable --profile-directory=my-profile --no-first-run --no-default-browser-check https://signin.aws.amazon.com/federation?Action=login&Destination=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3Fregion%3Dus-east-1&Issuer=&SigninToken=
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant