SKCraft / Launcher

🚀 Distribute your Minecraft modpacks with a custom launcher
Other
620 stars 433 forks source link

Strange behavior of Microsoft authorization on Linux #475

Open Envel-Nikita-Gutsenkov opened 2 years ago

Envel-Nikita-Gutsenkov commented 2 years ago

Linux Fedora 36, GNOME 42.2, Wayland

After executing the URL opening code, the URL (Microsoft authorization) does not open. After closing the Java program, the URL opens on its own O_o

That is, the URL opens only after the program is closed and this does not allow authorization.

hedgehog1029 commented 2 years ago

that's weird! by default, we use Java's Desktop#browse to open URLs - on Linux this uses gnome_url_show. We also fall back to invoking xdg-open if the Desktop call fails.

I would generally expect the gnome_url_show path to work on GNOME, but if it is falling back to xdg-open, perhaps that script is doing something strange?

KWik commented 1 year ago

I have the same issue. The OneDrive client for Linux has a workaround, where it will pass you an URL to paste in a browser, then asks you for the resulting URL, which should contain the token. Is this something that could be used as a workaround here as well?