Skip to content
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

How can I run Winetricks (or Protontricks) with umu-launcher? #103

Closed
Faugus opened this issue May 16, 2024 · 8 comments
Closed

How can I run Winetricks (or Protontricks) with umu-launcher? #103

Faugus opened this issue May 16, 2024 · 8 comments

Comments

@Faugus
Copy link

Faugus commented May 16, 2024

I am able to run winecfg with umu-launcher, like this:

WINEPREFIX=<prefix-path> GAMEID=<game-id> PROTONPATH=<proton-path> "/usr/bin/umu-run" "winecfg"

But I can't run winetricks:

i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel_hasvk.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_nouveau.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_
RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_radeon.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_lvp.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ProtonFixes[13570] INFO: Running protonfixes
ProtonFixes[13570] INFO: Running checks
ProtonFixes[13570] INFO: All checks successful
Proton: winetricks
Proton: Executable is inside wine prefix, launching normally.
fsync: up and running.
Application could not be started, or no application associated with the
 specified file.
ShellExecuteEx failed: File not found.
@R1kaB3rN
Copy link
Member

To run winetricks, please set GAMEID=winetricks-gui. Once you rerun the command, you should be prompted the winetricks GUI.

Though, I think this should be documented for users and being able to use winetricks should be a bit easier. For example:
WINEPREFIX=~/foo umu-run protontricks

@Faugus
Copy link
Author

Faugus commented May 16, 2024

@R1kaB3rN Thank you for the fast response. I tried to set GAMEID=winetricks-gui like you suggested and it didn't work.

i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel_hasvk.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_nouveau.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_radeon.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_lvp.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ProtonFixes[40602] INFO: Running protonfixes
ProtonFixes[40602] INFO: Running checks
ProtonFixes[40602] INFO: All checks successful
ProtonFixes[40602] INFO: Using global defaults for UNKNOWN (winetricks-gui)
ProtonFixes[40602] INFO: No global protonfix found for UNKNOWN (winetricks-gui)
Proton: winetricks
Proton: Executable is inside wine prefix, launching normally.
fsync: up and running.
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

@R1kaB3rN
Copy link
Member

R1kaB3rN commented May 17, 2024

I'm not able to reproduce that result in the latest master after running:
GAMEID=winetricks-gui WINEPREFIX=/some/path/to/prefix PROTONPATH=GE-Proton umu-run "".

Which should print the log:

ProtonFixes[29951] INFO: Running protonfixes
ProtonFixes[29951] INFO: Running checks
ProtonFixes[29951] INFO: All checks successful
ProtonFixes[29951] INFO: Non-steam game UNKNOWN (winetricks-gui)
ProtonFixes[29951] INFO: No store specified, using UMU database
ProtonFixes[29951] INFO: Using global defaults for UNKNOWN (winetricks-gui)
ProtonFixes[29951] INFO: Non-steam game UNKNOWN (winetricks-gui)
ProtonFixes[29951] INFO: No store specified, using UMU database
ProtonFixes[29951] INFO: Using global protonfix for UNKNOWN (winetricks-gui)
ProtonFixes[29951] INFO: Installing winetricks gui
ProtonFixes[29951] INFO: Using winetricks verb gui

Do you mind sharing the command and pasting the console output after setting UMU_LOG=debug?

@Faugus
Copy link
Author

Faugus commented May 17, 2024

@R1kaB3rN I'm using the build from AUR.

[faugus@archlinux ~]$ UMU_LOG=debug WINEPREFIX=/home/faugus/.config/faugus-launcher/prefixes/battlenet GAMEID=winetricks-gui PROTONPATH="/home/faugus/.steam/steam/compatibilitytools.d/GE-Proton9-4" "/usr/bin/umu-run" ""
DEBUG [umu_run.main:339]:Arguments: ('', [])
DEBUG [umu_util.setup_umu:155]:Root: /usr/share/umu
DEBUG [umu_util.setup_umu:156]:Local: /home/faugus/.local/share/umu
DEBUG [umu_run.setup_pfx:115]:Skipping link creation for prefix
DEBUG [umu_run.setup_pfx:116]:User steamuser directory exists: /home/faugus/.config/faugus-launcher/prefixes/battlenet/drive_c/users/steamuser
DEBUG [umu_run.setup_pfx:117]:User home directory exists: /home/faugus/.config/faugus-launcher/prefixes/battlenet/drive_c/users/faugus
INFO [umu_run.main:392]:WINEPREFIX=/home/faugus/.config/faugus-launcher/prefixes/battlenet
INFO [umu_run.main:392]:GAMEID=winetricks-gui
INFO [umu_run.main:392]:PROTON_CRASH_REPORT_DIR=/tmp/umu_crashreports
INFO [umu_run.main:392]:PROTONPATH=/home/faugus/.steam/steam/compatibilitytools.d/GE-Proton9-4
INFO [umu_run.main:392]:STEAM_COMPAT_APP_ID=0
INFO [umu_run.main:392]:STEAM_COMPAT_TOOL_PATHS=/home/faugus/.steam/steam/compatibilitytools.d/GE-Proton9-4:/home/faugus/.local/share/umu
INFO [umu_run.main:392]:STEAM_COMPAT_LIBRARY_PATHS=
INFO [umu_run.main:392]:STEAM_COMPAT_MOUNTS=/home/faugus/.steam/steam/compatibilitytools.d/GE-Proton9-4:/home/faugus/.local/share/umu
INFO [umu_run.main:392]:STEAM_COMPAT_INSTALL_PATH=
INFO [umu_run.main:392]:STEAM_COMPAT_CLIENT_INSTALL_PATH=
INFO [umu_run.main:392]:STEAM_COMPAT_DATA_PATH=/home/faugus/.config/faugus-launcher/prefixes/battlenet
INFO [umu_run.main:392]:STEAM_COMPAT_SHADER_PATH=/home/faugus/.config/faugus-launcher/prefixes/battlenet/shadercache
INFO [umu_run.main:392]:FONTCONFIG_PATH=
INFO [umu_run.main:392]:EXE=
INFO [umu_run.main:392]:SteamAppId=0
INFO [umu_run.main:392]:SteamGameId=0
INFO [umu_run.main:392]:STEAM_RUNTIME_LIBRARY_PATH=/usr/lib:/usr/lib32
INFO [umu_run.main:392]:STORE=
INFO [umu_run.main:392]:PROTON_VERB=waitforexitandrun
INFO [umu_run.main:392]:UMU_ID=winetricks-gui
INFO [umu_run.main:392]:ULWGL_ID=winetricks-gui
INFO [umu_run.main:392]:UMU_ZENITY=
DEBUG [umu_util._update_umu:205]:Existing install detected
DEBUG [umu_util._update_umu:218]:Current runtime: /home/faugus/.local/share/umu/sniper_platform_0.20240423.85483
DEBUG [umu_run.main:401]:['/usr/share/umu/reaper', 'UMU_ID=winetricks-gui', '--', '/home/faugus/.local/share/umu/umu', '--verb', 'waitforexitandrun', '--', '/home/faugus/.steam/steam/compatibilitytools.d/GE-Proton9-4/proton', 'waitforexitandrun', '']
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel_hasvk.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_nouveau.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_radeon.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_lvp.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
ProtonFixes[43705] INFO: Running protonfixes
ProtonFixes[43705] INFO: Running checks
ProtonFixes[43705] INFO: All checks successful
ProtonFixes[43705] INFO: Using global defaults for UNKNOWN (winetricks-gui)
ProtonFixes[43705] INFO: No global protonfix found for UNKNOWN (winetricks-gui)
Proton: 
Proton: Executable is inside wine prefix, launching normally.
fsync: up and running.
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.

@R1kaB3rN
Copy link
Member

The command I mentioned will not work in GE-Proton9-4 due to a bug in protonfixes that was addressed in 9-5. In 9-4, you will need to set the STORE variable to a value such as none.

@Faugus
Copy link
Author

Faugus commented May 17, 2024

Ooooooh I had no idea! It worked now. Thank you so much!

@Faugus Faugus closed this as completed May 17, 2024
@Faugus
Copy link
Author

Faugus commented May 17, 2024

@R1kaB3rN I'm sorry to bother you again, but is there a workaround to run Winetricks using Proton Experimental?

[faugus@archlinux ~]$ WINEPREFIX=/home/faugus/.config/faugus-launcher/prefixes/battlenet GAMEID=winetricks-gui PROTONPATH="~/.steam/steam/steamapps/common/Proton - Experimental" "/usr/bin/umu-run" "/mnt/data/Games/Battle.net/Battle.net.exe" ""
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel_hasvk.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_nouveau.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_radeon.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_lvp.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
Proton: Upgrading prefix from GE-Proton9-5 to 9.0-201 (/home/faugus/.config/faugus-launcher/prefixes/battlenet/)
Proton: Prefix has an invalid version?! You may want to back up user files and delete this prefix.
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
[faugus@archlinux ~]$ UMU_LOG=debug WINEPREFIX=/home/faugus/.config/faugus-launcher/prefixes/battlenet GAMEID=winetricks-gui PROTONPATH="~/.steam/steam/steamapps/common/Proton - Experimental" "/usr/bin/umu-run" "/mnt/data/Games/Battle.net/Battle.net.exe" ""
DEBUG [umu_run.main:339]:Arguments: ('/mnt/data/Games/Battle.net/Battle.net.exe', [''])
DEBUG [umu_util.setup_umu:155]:Root: /usr/share/umu
DEBUG [umu_util.setup_umu:156]:Local: /home/faugus/.local/share/umu
DEBUG [umu_run.setup_pfx:115]:Skipping link creation for prefix
DEBUG [umu_run.setup_pfx:116]:User steamuser directory exists: /home/faugus/.config/faugus-launcher/prefixes/battlenet/drive_c/users/steamuser
DEBUG [umu_run.setup_pfx:117]:User home directory exists: /home/faugus/.config/faugus-launcher/prefixes/battlenet/drive_c/users/faugus
INFO [umu_run.main:392]:WINEPREFIX=/home/faugus/.config/faugus-launcher/prefixes/battlenet
INFO [umu_run.main:392]:GAMEID=winetricks-gui
INFO [umu_run.main:392]:PROTON_CRASH_REPORT_DIR=/tmp/umu_crashreports
INFO [umu_run.main:392]:PROTONPATH=/home/faugus/.steam/steam/steamapps/common/Proton - Experimental
INFO [umu_run.main:392]:STEAM_COMPAT_APP_ID=0
INFO [umu_run.main:392]:STEAM_COMPAT_TOOL_PATHS=/home/faugus/.steam/steam/steamapps/common/Proton - Experimental:/home/faugus/.local/share/umu
INFO [umu_run.main:392]:STEAM_COMPAT_LIBRARY_PATHS=/mnt/data
INFO [umu_run.main:392]:STEAM_COMPAT_MOUNTS=/home/faugus/.steam/steam/steamapps/common/Proton - Experimental:/home/faugus/.local/share/umu
INFO [umu_run.main:392]:STEAM_COMPAT_INSTALL_PATH=/mnt/data/Games/Battle.net
INFO [umu_run.main:392]:STEAM_COMPAT_CLIENT_INSTALL_PATH=
INFO [umu_run.main:392]:STEAM_COMPAT_DATA_PATH=/home/faugus/.config/faugus-launcher/prefixes/battlenet
INFO [umu_run.main:392]:STEAM_COMPAT_SHADER_PATH=/home/faugus/.config/faugus-launcher/prefixes/battlenet/shadercache
INFO [umu_run.main:392]:FONTCONFIG_PATH=
INFO [umu_run.main:392]:EXE=/mnt/data/Games/Battle.net/Battle.net.exe
INFO [umu_run.main:392]:SteamAppId=0
INFO [umu_run.main:392]:SteamGameId=0
INFO [umu_run.main:392]:STEAM_RUNTIME_LIBRARY_PATH=/usr/lib32:/mnt/data/Games/Battle.net:/usr/lib
INFO [umu_run.main:392]:STORE=
INFO [umu_run.main:392]:PROTON_VERB=waitforexitandrun
INFO [umu_run.main:392]:UMU_ID=winetricks-gui
INFO [umu_run.main:392]:ULWGL_ID=winetricks-gui
INFO [umu_run.main:392]:UMU_ZENITY=
DEBUG [umu_util._update_umu:205]:Existing install detected
DEBUG [umu_util._update_umu:218]:Current runtime: /home/faugus/.local/share/umu/sniper_platform_0.20240423.85483
DEBUG [umu_run.main:401]:['/usr/share/umu/reaper', 'UMU_ID=winetricks-gui', '--', '/home/faugus/.local/share/umu/umu', '--verb', 'waitforexitandrun', '--', '/home/faugus/.steam/steam/steamapps/common/Proton - Experimental/proton', 'waitforexitandrun', '/mnt/data/Games/Battle.net/Battle.net.exe', '']
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_intel_hasvk.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_nouveau.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_radeon.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_R
UNPATH or fallback /lib:/usr/lib
i386-linux-gnu-capsule-capture-libs: warning: Dependencies of /usr/lib32/libvulkan_lvp.so not found, ignoring: Missing dependencies: Could not find "libxcb-keysyms.so.1" in LD_LIBRARY_PATH "", ld.so.cache, DT_RUNPATH or fallback /lib:/usr/lib
wine: using kernel write watches, use_kernel_writewatch 1.
fsync: up and running.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
[S_API FAIL] SteamAPI_Init() failed; no appID found.
Either launch the game from Steam, or put the file steam_appid.txt containing the correct appID in your game folder.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.
wine: using kernel write watches, use_kernel_writewatch 1.

@R1kaB3rN
Copy link
Member

The above command will only work for GE-Proton or UMU-Proton builds since it has the protonfixes module and winetricks script, and umu hasn't been adapted yet to run winetricks outside those builds.

In theory the workaround for that is to include the winetricks script inside the prefix or execute it within your home directory, and to ensure the environment is configured appropriately for it. See https://github.com/Open-Wine-Components/umu-protonfixes/blob/master/util.py#L261 for details. Though, I haven't tried this personally.

In the future, we can support this usage by easily including it in our custom runtime or implementing it in the launcher. The former will definitely be planned. If you want this feature though, please create a separate issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants