Respect the $BROWSER environment variable when attempting to launch URLs#444
Open
ChristopherJMiller wants to merge 1 commit intoAzureAD:mainfrom
Open
Conversation
siddharthpaudwal
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now,
azureauthattempts a known list of browser opening tools (such asxdg-open) in order to launch the oauth authorize url in--mode web, and fails if it can't find one of these tools. This doesn't work in github codespaces, as none of these tools exist! Comparing to howaz-cli, and theiraz logincommand handles it, they use the$BROWSERenvironment variable in order to inform what browser to use, rather than attempting to find known browser tools.This PR moves us to that environment variable model. To provide backwards compatibility for environments that don't have that set,
azureauthwill still use the static list if nothing is found.