Open mks-h opened 1 year ago
This affects players who try to get running Fallout New Vegas, Dishonored, Death of the Outsider, and other games that require installing Epic Games launcher in the prefix.
References: https://discord.com/channels/812703221789097985/1111439828995809290/1111471084961808405 https://discord.com/channels/812703221789097985/1111439828995809290/1111660863884111872
If Heroic has no permission to access the Downloads folder, is not the 'File Choose Portal' that will give that. That would actually be a failure on the Flatpak logic.
Imagine that any app that has this feature can access any file in your computer, this doesn't sound safe.
Just open Flatseal and give Heroic permission to your Downloads directory and it will work just fine.
Actually flatpak portal should give access just to the selected file. I'm actually confused about this issue, since it shouldn't happen as long as the executable is self contained (it doesn't need any more files from the same directory)
It is impossible to run an executable with "RUN EXE ON PREFIX" button, if the executable is located in
~/Downloads
or other directory that the Flatpak version doesn't have access to.
What I am referring too is the first part of what was said:
It is impossible to run an executable with "RUN EXE ON PREFIX" button, if the executable is located in ~/Downloads or other directory that the Flatpak version doesn't have access to.
If Heroic cannot access the folder, how can it select and run Executable?
Flatpak portals magic, try it yourself. The portal will create temporary link that allows to read and write to the file, if file is not accessible from within sandbox with current permissions.
If Heroic has no permission to access the Downloads folder, is not the 'File Choose Portal' that will give that.
I meant that a single-file executable accessed through the File Chooser portal becomes fully (or read-only if so chosen) accessible to the application. The Downloads folder will still be inaccessible. The issue is, that the executable doesn't launch unless Heroic has access to the Downloads folder, despite not needing any (as it already has access to the executable).
If Heroic has no permission to access the Downloads folder, is not the 'File Choose Portal' that will give that.
I meant that a single-file executable accessed through the File Chooser portal becomes fully (or read-only if so chosen) accessible to the application. The Downloads folder will still be inaccessible. The issue is, that the executable doesn't launch unless Heroic has access to the Downloads folder, despite not needing any (as it already has access to the executable).
Hmm, maybe this executable needs to write or read something on some folder that it does not have permission. I wonder if it needs to self extract to the Downloads folder so maybe that's the reason?
The executable in question is EpicInstaller-15.4.0.msi
, obtainable from Epic's home page. Now that I look at it, it did create a file Epic Games Launcher.lnk
in the folder it was run from. Here: Epic Games Launcher.zip
If the executable doesn't have permissions to write in the fuse filesystem it's running from, then maybe it would be better to run it from a temporary directory?
you need to run executables in the folder they are in, because they may have dependencies relative to it's current path
we can't know if an executable is just that single file or if there are related files along with it to move things to a temporary directory
Describe the bug
It is impossible to run an executable with "RUN EXE ON PREFIX" button, if the executable is located in
~/Downloads
or other directory that the Flatpak version doesn't have access to. This shouldn't be the case, as Heroic seems to use the File Chooser Portal, which means Heroic should have all necessary permissions to run the EXE.Add logs
Steps to reproduce
~/Downloads
Expected behavior
Screenshots
No response
Heroic Version
Latest Stable
System Information
Fedora 38, Flathub, Heroic 2.8.0
Additional information
No response