我可以通过Steam正常启动游戏,没有任何问题。但我想启动一个脚本来启动游戏。
Steam 将命令记录到系统日志,如下所示:
/bin/sh\0-c\0/home/kuba/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=56400 -- /home/kuba/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/games/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/home/kuba/.local/share/Steam/compatibilitytools.d/GE-Proton8-11'/proton waitforexitandrun '/games/SteamLibrary/steamapps/common/Dawn of War II - Retribution/DOW2.exe'\0
引用后我运行:
/bin/sh -c "/home/kuba/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=56400 -- /home/kuba/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/games/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun -- '/home/kuba/.local/share/Steam/compatibilitytools.d/GE-Proton8-11'/proton waitforexitandrun '/games/SteamLibrary/steamapps/common/Dawn of War II - Retribution/DOW2.exe'"
但我收到一个错误:
pressure-vessel-adverb[175960]: E: Failed to execute child process "/games/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/steam-runtime-launcher-interface-0" (No such file or directory)
最疯狂的是那个文件做存在!
that_cmd 2>&1 | grep -o '".*"' | xargs file
/games/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/steam-runtime-launcher-interface-0: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=f9f3879d7dc5c745fe91e9c7fcbd4f4e37dc5f35, stripped
我应该在启动选项中添加什么来启动能够启动游戏的脚本?