Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

Strange behavior of Microsoft authorization on Linux

Open Envel-Nikita-Gutsenkov opened this issue 3 years ago • 2 comments

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.

Envel-Nikita-Gutsenkov avatar Jun 29 '22 10:06 Envel-Nikita-Gutsenkov

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?

hedgehog1029 avatar Jun 29 '22 23:06 hedgehog1029

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?

KWik avatar Nov 17 '22 15:11 KWik