Open andrei-panov opened 5 months ago
I have encountered similar problems.
I noticed that xdg-open
, which should not be available in WSL, has been installed, and that AWS-CLI is calling xdg-open
and losing response.
So I uninstalled xdg-open
and solved the problem.
I hope this helps to solve the problem.
@kyoh86 Thanks, uninstalling xdg-open via yum remove xdg-utils
worked for me after multiple other attempts to me it work..
What I tried before:
for some reason under my WSL2 fedora 39, any xdg command hangs indefinitely, and even trying to override it by creating /root/.local/bin/xdg-open
with content:
#!/bin/sh
exec /usr/bin/gio open $@
didn't help..
wslu
installed as well,
bin/gio
is part of glib2
,
and to set it's browser is gio mime x-scheme-handler/https chrome.exe.desktop
located here /usr/share/applications/chrome.exe.desktop
This is an artifact of running under WSL2. On regular Linux, xdg-open
tries to open a link in the user's default browser, but usually there is no browser app installed in the WSL environment to open. You can get around this by setting a BROWSER environment variable, such as
export BROWSER='/mnt/c/Users/kellertk/AppData/Local/Google/Chrome/Application/chrome'
Now xdg-open
works as expected. You can add this to your ~/.bashrc
, or you can simply uninstall xdg-utils
.
This is an artifact of running under WSL2. On regular Linux,
xdg-open
tries to open a link in the user's default browser, but usually there is no browser app installed in the WSL environment to open. You can get around this by setting a BROWSER environment variable, such asexport BROWSER='/mnt/c/Users/kellertk/AppData/Local/Google/Chrome/Application/chrome'
Now
xdg-open
works as expected. You can add this to your~/.bashrc
, or you can simply uninstallxdg-utils
.
This is how I used to do it in Fedora 35, and and earlier versions all around, but something in recent versions of something became incompatible.. even xdg-settings (get|set) default-web-browser
hangs
Describe the bug
I did setup according to documentation https://docs.aws.amazon.com/cli/latest/userguide/sso-configure-profile-token.html#sso-configure-profile-token-auto-sso-session
Expected Behavior
Expected
aws sso
will authorize me.Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CLI version used
aws-cli/2.15.15 Python/3.11.6 Linux/5.15.133.1-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off
Environment details (OS name and version, etc.)
WSL2 (Ubuntu 22.04.3 LTS), Windows 11