TormStorm / jagex-launcher-linux

Community projects to install the Jagex Launcher and use Jagex Accounts in Linux
GNU Affero General Public License v3.0
220 stars 24 forks source link

Not able to login to runelite #80

Closed saladuit closed 1 year ago

saladuit commented 1 year ago

Describe the bug Opening runelite via the jagex launcher works perfectly. However, I'm not able to login to runelite. Is there another way to do so?

To Reproduce Steps to reproduce the behavior:

  1. Start jagex launcher
  2. Click on 'Play'
  3. Click 'Sign in to Runelite'
  4. Nothing happens

Expected behavior login popup menu

Screenshots Not applicable

Please complete the following information:

                   -`                    saladuit@omega-arch 
                  .o+`                   ------------------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: PCx0Dx 
               `+oooooo:                 Kernel: 6.4.12-zen1-1-zen 
               -+oooooo+:                Uptime: 9 mins 
             `/:-:++oooo+:               Packages: 1101 (pacman) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 1920x1080 
          `/+++ooooooooooooo/`           DE: GNOME 44.4 
         ./ooosssso++osssssso+`          WM: Mutter 
        .oossssso-````/ossssss+`         WM Theme: Adwaita 
       -osssssso.      :ssssssso.        Theme: Adwaita [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Adwaita [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: guake 
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel i7-10870H (16) @ 5.000GHz 
  `+sso+:-`                 `.-/+oso:    GPU: Intel CometLake-H GT2 [UHD Graphics] 
 `++:.                           `-/+/   GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q 
 .`                                 `/   Memory: 5055MiB / 15686MiB 
nmlynch94 commented 1 year ago

@saladuit This is working on my machine. All it does it launch an appimage, so I think maybe xdg-open + appimages aren't working on your system.

If you run xdg-open https://runelite.net, does it open a browser window?

saladuit commented 1 year ago

@nmlynch94 seems to work!

~  ❯ xdg-open https://runelite.net

~  ❯ Opening in existing browser session.
saladuit commented 1 year ago

The following are the logs of lutris when starting the jagex launcher:

Started initial process 5293 from gamemoderun /home/saladuit/.local/share/lutris/runners/wine/lutris-GE-Proton8-13-x86_64/bin/wine /home/saladuit/Games/jagex-launcher/drive_c/Program Files (x86)/Jagex Launcher/JagexLauncher.exe
Start monitoring process.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
fsync: up and running.
wine: Using setpriority to control niceness in the [-10,10] range
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.runelite.client.util.ReflectUtil (file:/home/saladuit/.runelite/repository2/client-1.10.11.1.jar) to field java.lang.reflect.Executable.declaredAnnotations
WARNING: Please consider reporting this to the maintainers of net.runelite.client.util.ReflectUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
saladuit commented 1 year ago

i got the following from the logs, and clicking the green 'sign in to Runelite' butten doesn't add any entries. Also lookup wiki doesn't work.

nmlynch94 commented 1 year ago

Could you try downloading and opening the AppImage file for runelite directly and seeing if browser links are working? I suspect this is unrelated to the jagex launcher, but that will confirm for sure.

saladuit commented 1 year ago
  1. I downloaded runelite via pamac
  2. started it
  3. Was able to login
  4. then launched runelite via the jagexlauncher
  5. now i am logged in
  6. but I am unable to for example use the wiki login

This kinda works for me at the moment as the settings are most important, but still curious why it doesn't work. @nmlynch94

saladuit commented 1 year ago

I'm just really unsure how to debug this

nmlynch94 commented 1 year ago

Could you specifically launch the .AppImage file as opposed to the package manager version?

You can cd to /home/games/<you>/jagex-launcher/drive_c/Program FIles (x86)/Jagex Launcher/Games/RuneLite/ and there should be an appimage you can try to run with ./RuneLite.AppImage --appimage-extract-and-run. This will isolate if it's a RuneLite appimage + distro issue or if it's something with how we launch it from the Jagex Launcher.

If that also doesn't work, then I'm honestly not sure how to debug it either unfortunately. There have been issues in the past with Appimages not allowing links to work on some distros https://github.com/keepassxreboot/keepassxc/issues/8721, but I don't know if a similar issue is at play here.

saladuit commented 1 year ago

@nmlynch94 Works!

saladuit commented 1 year ago

So it is probably not the distro

saladuit commented 1 year ago

It could be that I'm using brave? Is there somewhere specified which browser should be used?

saladuit commented 1 year ago

Note: @nmlynch94 I'm already very happy that I'm able to login, (quite yanky, but still). So many thanks for that!

nmlynch94 commented 1 year ago

Yeah thanks for confirming. Looks like my theory was incorrect. Glad you found a workaround. I unfortunately cannot reproduce on my system, but maybe something like this https://askubuntu.com/questions/516307/how-do-i-change-default-wine-browser-to-native-ubuntu-browser-instead-of-ie could be a fix?

saladuit commented 1 year ago

@nmlynch94 Sorry I hadn't seen your response yet. I'll check it!

saladuit commented 1 year ago

I think I did it correctly but it didn't seem to work? image image

saladuit commented 1 year ago

image Small note, I was already wondering why this was popping up each time I opened the jagex launcher. Does this perhaps ring any bells? @nmlynch94

saladuit commented 1 year ago

Oke I didn't follow the instructions correctly. So here is my revised settings: image image image

At the moment the jagex launcher becomes totally black when trying to launch it.

nmlynch94 commented 1 year ago

One thing that was unclear from that guide, you will need to edit the registry of the game in lutris instead of the step 1 of wine regedit. You can click the up arrow next to the wine glass and select it from there if you haven't. If you did, then unfortunately I'm not sure what to try next.

Also, are you on Wayland? This black screen thing is an issue we've seen on wayland, especially gnome wayland. Try disabling dxvk. If that doesn't work, then also swap your wine to system wine (wine-staging) and enable virtual desktop.

The small icon you are seeing happens in gnome. I think that's how Wine handles when an application tries to add it's icon to the task bar but it can't find one.

saladuit commented 1 year ago

Oke the blackness was probably due to turning on prime render overload. the launcher luckily works again after restarting. Still curious to find out more about the browser settings though

saladuit commented 1 year ago

I'm on X11. I did use the arrow next to the wine glass this time. But it still doesn't use the correct browser. At this point I'm also unsure how to tackle this problem any further. Still if you know a fix I'm all ears!

One small note, the explore.exe opens and the launcher opens in a separate window. Like this: image

rompetomp commented 1 year ago

I have the same issue, and I tried the registry tweaks, but they don't solve the problem. Clicking the wiki button in RuneLite doesn't do anything and logging in only works when opening the AppImage directly.

FWIW, clicking a link inside the Jagex Launcher does open the webbrowser to the clicked link, it's just links in RuneLite that don't open.

saladuit commented 1 year ago

@rompetomp that is interesting. Because the links in my launcher also don't work...

nmlynch94 commented 1 year ago

You could give this a shot and see if the links open in the flatpak version of runelite: https://github.com/TormStorm/jagex-launcher-linux/issues/49#issuecomment-1643221975. Downside is, even if it works, I'll have no idea why and we'll be no closer to finding the reason lol.

orecham commented 1 year ago

Do you have the RuneLite flatpak installed ?

flatpak install flathub net.runelite.RuneLite

I had the same problem before I installed it onto my system like that.

TormStorm commented 1 year ago

Try installing it with the latest installation script and see if that resolves the issue

Stoepsel3000 commented 1 year ago

Installed it with the latest script but still have the issue with the .jar and AppImage. Flatpak version is working fine.

Maybe it's an issue related to specific DEs? I only have this issue when using Cinnamon. When I switch over to KDE plasma everything is working.

nmlynch94 commented 1 year ago

@Stoepsel3000 Seems likely. I'm on KDE as well so it would explain why I can't reproduce. I'll get cinnamon one of these days to see if I can get it working.

TormStorm commented 1 year ago

Closed as stale. If you have any more information feel free to reopen the issue.