Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
7.91k stars 417 forks source link

In Flatpak, can't run an EXE in a prefix, if the app doesn't have permissions for containing directory #2766

Open mks-h opened 1 year ago

mks-h commented 1 year ago

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

(07:00:54) INFO:    [Legendary]:        Refreshing library...
(07:00:54) INFO:    [Legendary]:        Refreshing Epic Games...
(07:00:54) INFO:    [Connection]:       Connectivity: check-online
(07:00:54) INFO:    [Connection]:       Pinging external endpoints
(07:00:54) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version
(07:00:54) INFO:    [Legendary]:        Legendary location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary
(07:00:54) INFO:    [Gog]:              GOGDL location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(07:00:54) INFO:    [Gog]:              GOGDL location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(07:00:54) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:00:54) WARNING: [Backend]:          Failed to register protocol with OS.
(07:00:54) INFO:    [Connection]:       Connectivity: online
(07:00:55) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(07:00:55) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json --version
(07:00:55) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:00:55) INFO:    [Backend]:          Loading Screen Ready
(07:00:56) INFO:    [Backend]:          

Heroic Version: 2.8.0 Nico Robin
Legendary Version:  0.20.32 Dark Energy (hotfix #6)
GOGdl Version: 0.7.2

Electron Version: 23.1.4
Chrome Version: 110.0.5481.192
NodeJS Version: 18.12.1

OS: Freedesktop SDK KERNEL: 6.3.4-201.fc38.x86_64 ARCH: x64
CPU: Intel Core™ i5-6200U @2.3 GOVERNOR: powersave
RAM: Total: 7.63 GiB Available: 4.47 GiB
GRAPHICS: GPU0: Skylake GT2 [HD Graphics 520]  VRAM: 256MB GPU1: GM108M [GeForce 940MX]  VRAM: 32MB 
PROTOCOL: x11

(07:00:56) INFO:    [Frontend]:         Refreshing undefined Library
(07:00:56) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(07:00:56) INFO:    [Gog]:              Found 0 game(s) to update
(07:00:56) INFO:    [Backend]:          Frontend Ready
(07:00:56) INFO:    [Backend]:          Checking for current version changelog
(07:00:56) INFO:    [Legendary]:        Checking for game updates: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:00:57) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:00:57) INFO:    [Winetricks]:       Downloading Winetricks
(07:00:57) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:00:58) INFO:    [Legendary]:        Found 0 games to update
(07:01:01) INFO:    [Backend]:          Starting the Download Queue
(07:01:17) INFO:    [DXVKInstaller]:    Removing vkd3d version information
(07:01:17) INFO:    [DXVKInstaller]:    Removing vkd3d files
(07:01:17) INFO:    [DXVKInstaller]:    Restoring old dlls
(07:01:17) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:17) DEBUG:   [Backend]:          Running Wine command: wineboot -u
(07:01:17) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting autoInstallVkd3d to false
(07:01:17) INFO:    [DXVKInstaller]:    Removing dxvk version information
(07:01:17) INFO:    [DXVKInstaller]:    Removing dxvk files
(07:01:17) INFO:    [DXVKInstaller]:    Restoring old dlls
(07:01:17) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:17) DEBUG:   [Backend]:          Running Wine command: wineboot -u
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d10core /f
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d11 /f
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d9 /f
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v dxgi /f
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d12 /f
(07:01:33) DEBUG:   [Backend]:          Running Wine command: reg delete HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d12core /f
(07:01:33) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting autoInstallDxvk to false
(07:01:34) INFO:    [Backend]:          Launching Fallout: New Vegas (5daeb974a22a435988892319b3a4f476)
(07:01:34) INFO:    [Backend]:          Preventing display from sleep
(07:01:34) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:34) INFO:    [Backend]:          Preventing machine to sleep
(07:01:34) INFO:    [Backend]:          Stopping Power Saver Blocker
(07:01:35) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:35) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:35) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton7-43
(07:01:35) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:01:36) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --json --offline
(07:01:36) INFO:    [Legendary]:        Launching Fallout: New Vegas: LD_LIBRARY_PATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib64:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia WINEPREFIX="/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas" WINEDLLOVERRIDES=winemenubuilder.exe=d WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=2 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib64/gstreamer-1.0:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib/gstreamer-1.0 WINEDLLPATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib64/wine:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --language en --wine /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton7-43/bin/wine
(07:01:54) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(07:01:54) INFO:    [Frontend]:         Refreshing legendary Library
(07:01:54) INFO:    [Legendary]:        Refreshing library...
(07:01:54) INFO:    [Legendary]:        Refreshing Epic Games...
(07:01:54) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:01:55) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:05:59) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:06:05) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:06:48) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting wineVersion to {"bin":"/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wine","name":"Wine - Wine-GE-Proton8-7","type":"wine","lib":"/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64","lib32":"/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib","wineserver":"/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wineserver"}
(07:06:51) INFO:    [DXVKInstaller]:    installing dxvk on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d10core /d native,builtin /f
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d11 /d native,builtin /f
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d9 /d native,builtin /f
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v dxgi /d native,builtin /f
(07:06:51) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting autoInstallDxvk to true
(07:06:51) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d12 /d native,builtin /f
(07:06:51) DEBUG:   [Backend]:          Running Wine command: reg add HKEY_CURRENT_USER\Software\Wine\DllOverrides /v d3d12core /d native,builtin /f
(07:06:51) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting autoInstallVkd3d to true
(07:06:55) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting targetExe to ""
(07:07:11) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting targetExe to "/run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi"
(07:07:50) INFO:    [Backend]:          Launching Fallout: New Vegas (5daeb974a22a435988892319b3a4f476)
(07:07:50) INFO:    [Backend]:          Preventing display from sleep
(07:07:50) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:07:50) INFO:    [Backend]:          Stopping Power Saver Blocker
(07:07:50) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:07:50) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:07:50) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:07:50) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:07:51) INFO:    [DXVKInstaller]:    installing dxvk on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:07:51) INFO:    [DXVKInstaller]:    dxvk already installed!
(07:07:51) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:07:51) INFO:    [DXVKInstaller]:    vkd3d already installed!
(07:07:51) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --json --offline
(07:07:52) INFO:    [Legendary]:        Launching Fallout: New Vegas: LD_LIBRARY_PATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia WINEPREFIX="/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas" WINEDLLOVERRIDES=winemenubuilder.exe=d WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=2 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/gstreamer-1.0:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/gstreamer-1.0 WINEDLLPATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/wine:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --language en --override-exe /run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi --wine /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wine
(07:07:56) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(07:07:56) INFO:    [Frontend]:         Refreshing legendary Library
(07:07:56) INFO:    [Legendary]:        Refreshing library...
(07:07:56) INFO:    [Legendary]:        Refreshing Epic Games...
(07:07:56) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:07:56) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:08:01) INFO:    [Backend]:          Launching Fallout: New Vegas (5daeb974a22a435988892319b3a4f476)
(07:08:01) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:01) INFO:    [Backend]:          Stopping Power Saver Blocker
(07:08:01) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:01) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:01) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:01) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:08:02) INFO:    [DXVKInstaller]:    installing dxvk on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:08:02) INFO:    [DXVKInstaller]:    dxvk already installed!
(07:08:02) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:08:02) INFO:    [DXVKInstaller]:    vkd3d already installed!
(07:08:02) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --json --offline
(07:08:03) INFO:    [Legendary]:        Launching Fallout: New Vegas: LD_LIBRARY_PATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia WINEPREFIX="/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas" WINEDLLOVERRIDES=winemenubuilder.exe=d WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=2 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/gstreamer-1.0:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/gstreamer-1.0 WINEDLLPATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/wine:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --language en --override-exe /run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi --wine /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wine
(07:08:06) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(07:08:06) INFO:    [Frontend]:         Refreshing legendary Library
(07:08:06) INFO:    [Legendary]:        Refreshing library...
(07:08:06) INFO:    [Legendary]:        Refreshing Epic Games...
(07:08:06) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:08:07) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:08:20) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:08:26) INFO:    [Backend]:          5daeb974a22a435988892319b3a4f476: Setting targetExe to ""
(07:08:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:37) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:08:38) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:38) DEBUG:   [Backend]:          Running Wine command: /run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi
(07:08:43) INFO:    [Backend]:          Launching Fallout: New Vegas (5daeb974a22a435988892319b3a4f476)
(07:08:43) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:43) INFO:    [Backend]:          Stopping Power Saver Blocker
(07:08:43) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:43) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:43) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:08:43) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:08:44) INFO:    [DXVKInstaller]:    installing dxvk on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:08:44) INFO:    [DXVKInstaller]:    dxvk already installed!
(07:08:44) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:08:44) INFO:    [DXVKInstaller]:    vkd3d already installed!
(07:08:44) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --json --offline
(07:08:45) INFO:    [Legendary]:        Launching Fallout: New Vegas: LD_LIBRARY_PATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia WINEPREFIX="/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas" WINEDLLOVERRIDES=winemenubuilder.exe=d WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=2 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/gstreamer-1.0:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/gstreamer-1.0 WINEDLLPATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/wine:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --language en --wine /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wine
(07:09:08) INFO:    [Backend]:          Trying to kill 5daeb974a22a435988892319b3a4f476
(07:09:08) INFO:    [Backend]:          Killed 5daeb974a22a435988892319b3a4f476
(07:09:08) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:09:08) DEBUG:   [Backend]:          Running Wine command: wineboot -k
(07:09:10) ERROR:   [Backend]:          Aborting not possible. Could not find a matching abort controller for 5daeb974a22a435988892319b3a4f476
(07:09:10) INFO:    [Backend]:          Trying to kill 5daeb974a22a435988892319b3a4f476
(07:09:10) INFO:    [Backend]:          Killed 5daeb974a22a435988892319b3a4f476
(07:09:10) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:09:10) DEBUG:   [Backend]:          Running Wine command: wineboot -k
(07:09:10) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(07:09:10) INFO:    [Frontend]:         Refreshing legendary Library
(07:09:10) INFO:    [Legendary]:        Refreshing library...
(07:09:10) INFO:    [Legendary]:        Refreshing Epic Games...
(07:09:10) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:09:11) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(07:09:12) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:09:58) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:10:06) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:10:06) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:10:06) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:10:07) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:10:07) DEBUG:   [Backend]:          Running Wine command: /run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi
(07:11:18) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:11:18) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:11:18) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:11:19) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:11:19) DEBUG:   [Backend]:          Running Wine command: /run/user/1000/doc/eda33bd9/EpicInstaller-15.4.0.msi
(07:12:27) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:13:02) INFO:    [Legendary]:        Checking if EOS Overlay is enabled: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary eos-overlay info --prefix "/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas"
(07:13:02) INFO:    [ExtraGameInfo]:    Using cached ExtraGameInfo data for Fallout New Vegas
(07:13:02) INFO:    [Legendary]:        Getting more details with 'legendary info'
(07:13:02) INFO:    [ExtraGameInfo]:    Using cached ExtraGameInfo data for Fallout New Vegas
(07:13:02) INFO:    [Legendary]:        Getting more details with 'legendary info'
(07:13:02) INFO:    [Legendary]:        Getting more details with 'legendary info'
(07:13:02) INFO:    [Legendary]:        Getting more details with 'legendary info'
(07:13:03) INFO:    [Legendary]:        Abort command "/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary eos-overlay info --prefix "/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas""
(07:13:03) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary info 5daeb974a22a435988892319b3a4f476 --platform Windows --json
(07:13:03) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary info 5daeb974a22a435988892319b3a4f476 --platform Windows --json
(07:13:03) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary info 5daeb974a22a435988892319b3a4f476 --platform Windows --json
(07:13:03) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary info 5daeb974a22a435988892319b3a4f476 --platform Windows --json
(07:13:03) INFO:    [Legendary]:        Getting Info from Epic API
(07:13:04) INFO:    [Legendary]:        Getting Info from Epic API
(07:13:11) INFO:    [ExtraGameInfo]:    Using cached ExtraGameInfo data for Fallout New Vegas
(07:13:11) ERROR:   [Shortcuts]:        /home/mks/.steam/steam/userdata does not exist. Can't add/remove game to/from Steam!
(07:14:12) DEBUG:   [Legendary]:        Using cached install info
(07:14:12) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(07:16:54) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:16:54) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:16:54) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:16:55) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:16:55) DEBUG:   [Backend]:          Running Wine command: /home/mks/Desktop/EpicInstaller-15.4.0.msi
(07:20:36) DEBUG:   [Legendary]:        Using cached install info
(07:20:37) INFO:    [Backend]:          Launching Fallout: New Vegas (5daeb974a22a435988892319b3a4f476)
(07:20:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:20:37) INFO:    [Backend]:          Stopping Power Saver Blocker
(07:20:37) DEBUG:   [Legendary]:        Using cached install info
(07:20:37) DEBUG:   [Legendary]:        Using cached install info
(07:20:37) DEBUG:   [Legendary]:        Using cached install info
(07:20:37) DEBUG:   [Legendary]:        Using cached install info
(07:20:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:20:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:20:37) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-7
(07:20:37) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(07:20:38) INFO:    [DXVKInstaller]:    installing dxvk on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:20:38) INFO:    [DXVKInstaller]:    dxvk already installed!
(07:20:38) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas
(07:20:38) INFO:    [DXVKInstaller]:    vkd3d already installed!
(07:20:38) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --json --offline
(07:20:39) INFO:    [Legendary]:        Launching Fallout: New Vegas: LD_LIBRARY_PATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib DRI_PRIME=1 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia WINEPREFIX="/home/mks/Games/Heroic/Prefixes/default/Fallout New Vegas" WINEDLLOVERRIDES=winemenubuilder.exe=d WINE_FULLSCREEN_FSR=1 WINE_FULLSCREEN_FSR_STRENGTH=2 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/gstreamer-1.0:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/gstreamer-1.0 WINEDLLPATH=/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib64/wine:/home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 5daeb974a22a435988892319b3a4f476 --language en --wine /home/mks/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-Proton8-7/bin/wine
(07:21:04) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(07:21:04) INFO:    [Frontend]:         Refreshing legendary Library
(07:21:04) INFO:    [Legendary]:        Refreshing library...
(07:21:04) INFO:    [Legendary]:        Refreshing Epic Games...
(07:21:04) INFO:    [Legendary]:        Game list updated, got 9 games & DLCs
(07:21:04) DEBUG:   [Legendary]:        Using cached install info
(07:21:04) DEBUG:   [Legendary]:        Using cached install info
(07:21:04) INFO:    [Legendary]:        Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party

Steps to reproduce

  1. Go to a game's settings
  2. Click on "RUN EXE ON PREFIX" button
  3. Choose an exe from ~/Downloads
  4. See nothing

Expected behavior

  1. See launched exe

Screenshots

No response

Heroic Version

Latest Stable

System Information

Fedora 38, Flathub, Heroic 2.8.0

Additional information

No response

mks-h commented 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

flavioislima commented 1 year ago

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.

imLinguin commented 1 year ago

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)

flavioislima commented 1 year ago

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?

imLinguin commented 1 year ago

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.

mks-h commented 1 year ago

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).

flavioislima commented 1 year ago

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?

mks-h commented 1 year ago

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?

arielj commented 1 year ago

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