steam / steam-run: programs run with steam-run cannot access steam game's tmp files #381923
Open
3 tasks done
Labels
0.kind: bug
Something is broken
Nixpkgs version
Describe the bug
Currently, steam and steam-run are using separate FHSEnvs, both with
privateTmp = true;
, and as such an application run withsteam-run
can't access the /tmp directory of something launched through steam.This breaks applications that need to communicate directly with a game. In my case, I need to run Teamspeak (in proton, if it matters) and have it connect to Arma 3 (also running in proton), which it does using something that ends up in
/tmp
. (if I setprivateTmp = false;
in the steam package, everything works as expected, although as far as I can tell the easiest way to do this is overlaying a patched version of nixpkgs, because #341219 removed the override forprivateTmp
)Steps to reproduce
echo "test" | steam-run tee /tmp/steamenvtesting
cat /tmp/steamenvtesting # %command%
in the launch options of a game, hit play, and check console (or log file at~/.local/share/Steam/logs/console-linux.txt
for the output[2025-02-13 15:33:53] cat: /tmp/steamenvtesting: No such file or directory
Expected behaviour
output in steam log would ideally be
[2025-02-13 15:36:07] test
Screenshots
No response
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.11.11, NixOS, 24.11 (Vicuna), 24.11.20250210.44534bc
yes
yes
nix-env (Nix) 2.24.12
""
/nix/store/z88hhaq46sdqzkm0zas1sn284h7w87k9-source
Notify maintainers
@K900
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: