Jagex Launcher cant find RuneLite.AppImage file
Closed this issue · 8 comments
Describe the bug
RuneLite does not start when I click Play as the Jagex Launcher can not find the AppImage file.
In shell the output is the following: drive_c/Program Files (x86)/Jagex Launcher/Games/RuneLite/RuneLite.AppImage: No such file or directory
.
However, when I run: ls Program\ Files\ \(x86\)/Jagex\ Launcher/Games/RuneLite/
from the folder drive_c
, the output is:
RuneLite.AppImage RuneLite.exe runelite.sh
So the file is there.
To Reproduce
Steps to reproduce the behavior:
- Open Lutris through cli
flatpak run net.lutris.Lutris
. - Open the Jagex Launcher through Lutris
- Click on Play when RuneLite is selected.
- See error in shell.
Expected behavior
RuneLite should start.
Please complete the following information:
- Distro:
DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="23.0.0"
DISTRIB_CODENAME="Uranos"
DISTRIB_DESCRIPTION="Manjaro Linux"
- Desktop environment or Window Manager:
plasmashell 5.27.6
Qt: 5.15.10
KDE Frameworks: 5.108.0
kf5-config: 1.0
@TKafoe Are you able to launch the AppImage successfully if you cd to that folder and run runescape.sh
manually? It won't log you in but want to make sure there is nothing wrong with the AppImage file itself.
@nmlynch94 Yes, I can, I tried that and indeed, it launches normally.
I worked on it for a while to try to fix it, but could not fix it yet. If I find something, I will share it.
EDIT: Actually, I was wrong. It does not run if I run runelite.sh
and I get the same error, however, it does run if I run ./RuneLite.AppImage
.
So the problem lies in running the AppImage from the .sh
file.
EDIT2: If I edit runelite.sh
to:
#!/bin/sh
"$(pwd)"/RuneLite.AppImage --appimage-extract-and-run
This makes sense, as the path in the sh
file is set up to be relative to where it will be executed from in the Jagex Launcher. This does not fix the issue.
@TKafoe Thank you for confirming.
In your error message, you have drive_c/Program Files (x86)/Jagex Launcher/Games/RuneLite/RuneLite.AppImage: No such file or directory
. That first path should be an absolute path including a home directory. Did you cut that off for privacy reasons, or is that the exact error message? If the latter, then there may be some special character in your path that the script isn't handling properly. The fact that the appimage works but not that script also points in this direction. If that's the case, I would need to see the full path, or at least something similar to it. I tested spaces on my machine and that seems to be handled properly so it may be something else.
Did you cut that off for privacy reasons
Yes, I did. The full path contains /home/...
. Now that I think of it, it was not very sensitive, but I cut it off out instinct.
The full path is the correct path to the file. I checked it. If you want me to change my original issue to include the full path for clarity, I can do that.
@TKafoe That's ok as long as you are sure it is right and it doesn't have any characters that could be messing up the bash interpreter. It just seems like runelite.sh
is not getting a valid path somehow, presumably from pwd.
You might be able to just edit runelite.sh to be and hard-code the path.
cd <your_RuneLite.AppImage_location>
./RuneLite.AppImage
@nmlynch94 runelite.sh
does get the correct path through $(pwd)
, as I can see that it does. I checked the path and it checks out. It simply does not find the file, even though it is there (even an ls
shows the file being there). It feels like a permissions issue. I googled around, and I have found some posts that lead me to it being an issue because of previously installed wine versions on my computer (not through Lutris or Flatpak), so I will try to see if that leads me anywhere and post here if I get it to work.
Unfortunately, I can not find the issue. I am going to leave it unsolved for now. It is unfortunate that I can not play on RuneLite at the moment, but the normal client does work so I can use that.
I will close the issue, unless you have any other ideas.
@TKafoe Sorry it's not working for you! A few options you could try to get runelite working:
-
Get the RuneLite flatpak and modify runelite.sh to be the script here: #49. (Probably easiest method)
-
you could download the RuneLite jar file from the site (all platforms), place it in the directory with the AppImage, then see if you have any luck getting runelite.sh to run that instead. I haven't tested that so YMMV. Idk off the top of my head if Lutris bundles Java.
-
Experimental repo running Jagex Launcher as a flatpak: https://github.com/nmlynch94/com.jagexlauncher.JagexLauncher
-
Adamcake's Bolt Launcher: https://github.com/Adamcake/Bolt (Native linux third party client. Logs you in then just launches the game with the correct auth tokens)
Adamcake's Bolt Launcher Flatpak: https://github.com/Adamcake/bolt-flatpak
note that the above are still under development at the moment and are not built by Jagex, but they can launch RuneLite at this time. I have personally used it a lot with no issues so far.