aws / aws/aws-cli

WSL: aws sso login fails to open browser with gio

Open
#10,242 2 comments 0 reactions 1 assignee Claimed by @RyanFitzSimmonsAK View on GitHub
bug investigating p3 sso
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

## Summary
When running `aws sso login` in WSL, automatic browser launch can fail with an `Operation not supported` error from Linux desktop launchers.

## Reproduction
1. Run AWS CLI in WSL
2. Run `aws sso login --profile `
3. Observe browser launch failure and manual URL fallback

## Expected
AWS CLI should open the authorization URL using WSL-compatible browser interop.

## Notes
A fix has been implemented to detect WSL and use WSL browser launch behavior (prefer `wslview`, fallback to Windows shell launch).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.