Some games that require Proton don’t run at all (Street Fighter V, DARK SOULS: REMASTERED, Red Dead Redemption 2, Resident Evil 2 (the remake one)) after you press the “Play” button on Steam. After you press the “Play” button, the game dies immediately (there is no black screen, no nothing) and the Steam buttom goes from “Running” to “Play” in less than a second.
Trying to figure out what’s wrong, I found this script called protonlaunch
that allows me to launch any program with any Proton environment from the command-line; thus I gave it a try:
protonlaunch winecfg
and it fails:
protonlaunch: steam installation path is '/home/jorge/.local/share/Steam'
protonlaunch: proton version 'Proton - Experimental'
protonlaunch: prefix '/home/jorge/.proton'
protonlaunch: Program is 'winecfg'
Traceback (most recent call last):
File "/home/jorge/biblioteca/Steam/steamapps/common/Proton - Experimental/proton", line 1722, in <module>
rc = g_session.run()
File "/home/jorge/biblioteca/Steam/steamapps/common/Proton - Experimental/proton", line 1682, in run
rc = self.run_proc(adverb + argv + sys.argv[2:] + self.cmdlineappend)
File "/home/jorge/biblioteca/Steam/steamapps/common/Proton - Experimental/proton", line 1653, in run_proc
return subprocess.call(args, env=local_env, stderr=self.log_file, stdout=self.log_file)
File "/nix/store/vs6vc444wsi19cm0c1dwkvdj731x1pdp-python3-3.10.12/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/nix/store/vs6vc444wsi19cm0c1dwkvdj731x1pdp-python3-3.10.12/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/nix/store/vs6vc444wsi19cm0c1dwkvdj731x1pdp-python3-3.10.12/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/jorge/biblioteca/Steam/steamapps/common/Proton - Experimental/files/bin/wine64'
The binary referred above (/home/jorge/biblioteca/Steam/steamapps/common/Proton - Experimental/files/bin/wine64
) exists and everything, but this is NixOS and pre-compiled binaries are No No here.
NixOS already provides a wine64 binary from wine64 package, how can I tell Proton to use that instead? Is there a better workaround for Steam games?
I tried running protonlaunch
with steam-run
to see what happens:
steam-run protonlaunch --proton-version 'Proton - Experimental' /home/jorge/biblioteca/Steam/steamapps/common/StreetFighterV/StreetFighterV.exe
Got a bunch of warnings and the game exited after showing a small banner:
protonlaunch: steam installation path is '/home/jorge/.local/share/Steam'
protonlaunch: proton version 'Proton - Experimental'
protonlaunch: prefix '/home/jorge/.proton'
protonlaunch: Program is '/home/jorge/biblioteca/Steam/steamapps/common/StreetFighterV/StreetFighterV.exe'
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
steamapps/common/StreetFighterV took 4s
Unable to read VR Path Registry from C:\users\steamuser\AppData\Local\openvr\openvrpaths.vrpath
Unable to read VR Path Registry from C:\users\steamuser\AppData\Local\openvr\openvrpaths.vrpath
steam.sh[71846]: Running Steam on nixos 23.05 64-bit
steam.sh[71846]: STEAM_RUNTIME is enabled automatically
setup.sh[71922]: Steam runtime environment up-to-date!
run.sh[71934]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit st
steamapps/common/StreetFighterV took 4s
steam.sh[72048]: Running Steam on nixos 23.05 64-bit
steam.sh[72048]: STEAM_RUNTIME is enabled automatically
setup.sh[72180]: Steam runtime environment up-to-date!
run.sh[72215]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127
steam.sh[72048]: Steam client's requirements are satisfied
steam.sh[72091]: Running Steam on nixos 23.05 64-bit
steam.sh[72091]: STEAM_RUNTIME is enabled automatically
setup.sh[72312]: Steam runtime environment up-to-date!
run.sh[72335]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127
[... the last 5 lines repeated themselves several times before the game exiting ...]
steam.sh[72048]: Steam client's requirements are satisfied
steam.sh[72091]: Running Steam on nixos 23.05 64-bit
steam.sh[72091]: STEAM_RUNTIME is enabled automatically
setup.sh[72312]: Steam runtime environment up-to-date!
run.sh[72335]: Warning: An unexpected error occurred while executing "/sbin/ldconfig -XNv", the exit status was 127