protonscr

unable to access steamwork api from flatpak steam

steamclosed
ValveSoftware/steam-for-linux#11333 · opened 2024-10-09 by scarf005 · updated 2024-10-09 · 1 comments · github
Sscarf005 2024-10-09 github

Your system information

  • Steam client version (build number or date): 1726604483, Wed, Sep 18 5:03 AM UTC +09:00
  • Distribution (e.g. Ubuntu): Fedora Kinoite 40
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: Nvidia
  • steam installed via flatpak

Please describe your issue in as much detail as possible:

steamworks API fails to connect to running (flatpak) steam client.

Steps for reproducing this issue:

  1. install flatpak steam.
  2. ran ln -s ~/.var/app/com.valvesoftware.Steam/.steam ~/.steam because AFAIK steam API uses ~/.steam
  3. attempted to run StS mod uploader: java -jar mod-uploader.jar upload -w MarisaContinued/
  4. failed with:
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
10월 09, 2024 11:13:18 오후 com.megacrit.moduploader.Uploader connectToSteam
심각: Steam API failed to initialize correctly.
  1. if mod-uploader.jar is unavailable: the same error can be reproduced with https://github.com/ceifa/steamworks.js/ with node.js
$ mkdir reproduce && cd reproduce
$ npm init es6 -y
$ npm install steamworks.js
$ echo 'import steamworks from "steamworks.js"
                        
const client = steamworks.init(646570)
console.log(client.localplayer.getName())' > main.js
$ node main.js
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API] SteamAPI_Init(): Loaded '/var/home/scarf/.var/app/com.valvesoftware.Steam/.local/share/Steam/linux64/steamclient.so' OK.
IPC function call IClientUtils::SetAppIDForCurrentPipe took too long: 74 msec
Setting breakpad minidump AppID = 646570
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198168686419 [API loaded no]
목도리
Kkisak-valve maintainer 2024-10-09 github

Hello @scarf005, this issue should be directed to the steam-in-flatpak package maintainers as it's more about Flatpak separating software by its nature than the Steam client itself. Report this issue to https://github.com/flathub/com.valvesoftware.Steam.

I would expect that anything you'd want to interact with an application running in a Flatpak container should be run inside the same environment, but I don't know the specific details for that.

Nothing extracted yet.