-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Installers are not handled correctly on Linux (using Lutris or Wine) #299
Comments
When I created this issue I was trying to install a game that had an installer file but it was not called Just to clarify:
In both cases, I think adding a dialog saying "The game installer was not found, please check yourself and add the game to the library later" would be good. |
The game I was trying to install was 18 Wheels of Steel: Across America. |
May I suggest something?
The Windows conditional remains the same as it is in your PR. These checks should happen after that. What do you think @scrlkx? If you think it is good enough, could you implement this in your PR? |
I think it solves both problems |
That's sounds good, I will take another look into it later. |
Describe the bug
We already have the ability to handle running game installers using Lutris or Wine as you can see here and here.
However, there is something wrong on the lines above it. We have an extra logic that appends a
setup.exe
to the file path which results in an invalid path to the game file. And, when this path is not found, we just callshell.openPath(gamePath)
and, as Linux doesn't know how to open .exe files, it just does it's best opening with Archive Manager or something like that.That means the lines that handle opening the installer with Lutris or Wine never reach. Removing this piece of code seems to fix the issue, but I assume they are there for a reason?
On the lines above,
gamePath
is a valid path (pointing to the installer file), butsetupPath
it's not.fs.existsSync(setupPath)
will always befalse
so we will always doshell.openPath(gamePath);
.To Reproduce
Steps to reproduce the behavior:
Note that, what will happend after you click install depends on which distribution/desktop environment you are running. In case of GNOME it should open Archive Manager.
Expected behavior
In case Lutris or Wine are installed, the game installer should open on them. I'm not so sure about what should happen if they are not.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The text was updated successfully, but these errors were encountered: