Linux Fedora 36, GNOME 42.2, Wayland (Xorg same), Java 8 (Java 17 same)
After executing the URL opening code, the URL does not open. After closing the Java program, the URL opens on its own.
I have tried several browser open implementations, but the result is the same. I would like to know how this is solved and I'm not sure if this is a code problem and not Fedora.
Desktop d = Desktop.getDesktop();
d.browse(generateInteractiveUrl(httpHandler.getPort()));
or
Desktop d = Desktop.getDesktop();
URI readyUrl = generateInteractiveUrl(httpHandler.getPort());
log.info("Microsoft auth URL: " + readyUrl); // returns the correct URL
d.browse(readyUrl); // opens only after closing the program О_o