Fix limited disk visibility for games running in Steam Linux Runtime
Steam Linux Runtime is used to run almost everything in Steam on Linux. Starting with version 2 of the runtime, the program gets wrapped in a container which makes use of namespacing to restrict which directories are visible to the application. For example RetroArch can't see roms directory located on another SSD. Since the 64-bit client update that forced use of the Linux Runtime for Steam, this also impacts Steam itself, which is now wrapped in a namespaced container and can no longer see secondary games drive mounted in fstab.
Additional directories can be configured using any of these env vars to resolve this issue:
- STEAM_COMPAT_MOUNTS
- PRESSURE_VESSEL_FILESYSTEMS_RO (read-only access)
- PRESSURE_VESSEL_FILESYSTEMS_RW (read-write access)
Separate multiple paths with colon.
Examples
STEAM_COMPAT_MOUNTS=/var/roms %command%
PRESSURE_VESSEL_FILESYSTEMS_RW=/var/data/games %command%
STEAM_COMPAT_MOUNTS=/var/roms:/var/data/games %command%
Extra comments
Note that umu-run overrides STEAM_COMPAT_MOUNTS so you can't use that when running games with umu-run.
There is also STEAM_COMPAT_LIBRARY_PATHS but this is a tool-specific variable which should not be overridden.