The-Fireplace-Minecraft-Mods / In-Game-Account-Switcher

This mod allows you to change your logged in account in-game, without restarting Minecraft.
https://modrinth.com/mod/in-game-account-switcher
GNU Lesser General Public License v3.0
88 stars 36 forks source link

[Bug] Microsoft login not opening to browser on Linux #104

Closed adamscafuto closed 7 months ago

adamscafuto commented 1 year ago

Describe the bug

When attempting to add an account, clicking the Microsoft button does not open a browser and instead saves a file shown in the screenshot.

To Reproduce

  1. Launch the game.
  2. Open the IGAS menu.
  3. Click 'Add'.
  4. Click 'Microsoft'.

Minecraft Version

Forge 1.19.2

Logs/Screenshots/Videos

https://i.imgur.com/t3ZGgCT.png

Checklist

adamscafuto commented 1 year ago

image Specs of System

triesharder commented 1 year ago

Same on BigLinux, this also happens with links on in-game chat. Probably not plugin-side issue?

VidTu commented 1 year ago

Mod is opening login URL via Minecraft's Util.getPlatform().openUri(String) since 1.14 (I'm using Desktop.getDesktop().browse(URI) with fallback to Sys.openURL(String) pre-1.14), so please test if you can open links via Minecraft chat before reporting any issues. I've tested the mod (8.0.1.1 on Fabric 1.19.3) on some Linux VMs (where I was able to find working VM drivers) like Ubuntu, Fedora and Manjaro and it opens URL in the default browser when configured.

You can use this command /tellraw @s {"text":"Click me to open example URL.","clickEvent":{"action":"open_url","value":"https://example.org/"}} in singleplayer to test URLs.
hoxqot commented 1 year ago

I confirm, same issue with Mint 21.1. A solution could be a button to copy the URL that is passed to the browser (if the author could do that). Now, before starting, I change the default browser to Google Chrome (Firefox and Yandex Browser not working), then I switch to my preferred browser. If you do not want to do this on all instances, then you can copy the "ias.json" file from the "config" directory to other instances.

triesharder commented 1 year ago

Not Happening anymore to me.

Openjdk 17.0.6 Mod version: v8.0.1.2 System: image