protonscr

Launching non-steam windows games via proton attempts and fails to initialize Steam API

steamopen
ValveSoftware/steam-for-linux#10256 · opened 2023-11-28 by JohnTheCoolingFan · updated 2026-05-25 · 10 comments · github
1 matching comments, n / p to jump
JJohnTheCoolingFan 2023-11-28 github

Your system information

  • Steam client version (build number or date): 1700867040 (Date: Sat, 25 Nov. 1:15 UTC -08:00)
  • Distribution (e.g. Ubuntu): Arch Linux
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: AMD Radeon RX 6700 XT

Please describe your issue in as much detail as possible:

Trying to launch a windows game added as a non-steam game but it fails to start because Steam API is attempted to be initialized and fails doing so.

Stdout gist: https://gist.github.com/JohnTheCoolingFan/cfb49740a6a85ade1d90cae219d1c0d7

Steps for reproducing this issue:

  1. Add a standalone windows game as a non-steam game
  2. Select proton as the compatibility tool
  3. Press the start button
TTTimo 2023-12-04 github

Cyberpunk 2077 is available on Steam. Try adding a steam_appid.txt file with the AppID number (1091500) to the content directory? Although that'll probably still fail if you don't own the game on steam.

JJohnTheCoolingFan 2023-12-04 github

I did try that before reporting, but it just replaces the non-steam library entry with the steam game entry and requires to purchase on Steam.

JJohnTheCoolingFan 2023-12-10 github

Also tried on my another linux install where I use steam via flatpak. Same issue.

Vvvurzelsepp 2025-01-06 github

@TTimo What's the status of this issue?

I get the same error when I try to launch a freshly installed game (Added via "non-Steam game" option). Strangely the installer works without the steam_appid.txt file, but as soon as you try to start the game executable Steam wants the app id - why is this suddenly a requirement? I buy my games on GOG and I would like to play them like before. This worked in the past. The error message is also misleading:

Either launch the game from Steam, or put the file steam_appid.txt containing the correct appId in your game folder

I launched the game with steam, and putting the file into the directory isn't a solution, since I don't own the game in Steam.

Somehow I got The Witcher 3 working, by moving the installation directory directly into my home directory, so it's no longer in the steam specific proton/wine "container". This hasn't worked for any other games and I am not sure anymore if this really fixed the issue. It's a little bit frustrating that there are no official docs / FAQ that can help with this kind of issues.

TTTimo 2025-01-06 github

Hello,

A valid license is required for any game trying to initialize the Steamworks API.

Presumably titles that are sold on third party stores do not actually need the Steamworks API for any core functionality. There may be something different about running as a non-steam app that incorrectly triggers the title to attempt a Steamworks initialization when it shouldn't and subsequently abort though.

Would you mind uploading a set of logs (tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs) and clarifying which game(s) you are having this issue with?

Vvvurzelsepp 2025-01-07 github

Hello TTimo,
thanks for your fast reply. I can share the game log file, created with PROTON_LOGS=1

~steam-17355333943993303040.log~

The game is Farming Simulator 2025. I bought it directly from the producer.

Output of Steam if started via console:

chdir "/home/gamer/Farming Simulator 2025/x64"
Game Recording - would start recording game 17355333943993303040, but recording for this game is disabled
Adding process 23980 for gameID 17355333943993303040
ERROR: ld.so: object '/home/gamer/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/gamer/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/gamer/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/gamer/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/gamer/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Adding process 23982 for gameID 17355333943993303040
Adding process 23983 for gameID 17355333943993303040
Adding process 24120 for gameID 17355333943993303040
Adding process 24121 for gameID 17355333943993303040
Adding process 24122 for gameID 17355333943993303040
Adding process 24123 for gameID 17355333943993303040
Adding process 24124 for gameID 17355333943993303040
Adding process 24125 for gameID 17355333943993303040
Adding process 24128 for gameID 17355333943993303040
Adding process 24130 for gameID 17355333943993303040
Adding process 24133 for gameID 17355333943993303040
Adding process 24142 for gameID 17355333943993303040
Adding process 24154 for gameID 17355333943993303040
Adding process 24160 for gameID 17355333943993303040
Adding process 24183 for gameID 17355333943993303040
Game Recording - game stopped [gameid=17355333943993303040]
Removing process 24183 for gameID 17355333943993303040
Removing process 24160 for gameID 17355333943993303040
Removing process 24154 for gameID 17355333943993303040
Removing process 24142 for gameID 17355333943993303040
Removing process 24133 for gameID 17355333943993303040
Removing process 24130 for gameID 17355333943993303040
Removing process 24128 for gameID 17355333943993303040
Removing process 24125 for gameID 17355333943993303040
Removing process 24124 for gameID 17355333943993303040
Removing process 24123 for gameID 17355333943993303040
Removing process 24122 for gameID 17355333943993303040
Removing process 24121 for gameID 17355333943993303040
Removing process 24120 for gameID 17355333943993303040
Removing process 23983 for gameID 17355333943993303040
Removing process 23982 for gameID 17355333943993303040
Removing process 23980 for gameID 17355333943993303040
TTTimo 2025-01-07 github

Thanks but I don't really mean the proton game log, I mean the steam client logs. This is where we may get details on how the steam client sets up the runtime environment for launching the title.

Vvvurzelsepp 2025-01-07 github

To be honest I don't feel comfortable to share those logs, as they contain a lot and I can't say for sure if they contain something I would consider sensitive (e.g. steam user id). I know you try to help and this may seem stubborn, and I'm sorry for being cautious and complicating things.

after another test, I can confirm I get the same error message when starting The Witcher 3, but the game runs well, so I think the failing API call might not be the problem actually.

TTTimo 2025-01-07 github

You can email them to me directly [email protected] if you prefer.

Kkaisservargas850-spec 2026-05-25 · hidden on GitHub github

er i play ppg on gamehub im on android it have the steam cracked files but the game says steam is not initialized

Launch options