Skip to content

fix: shortcut path breaks Steam sandbox on OSTree distros (/home symlink) #35

Description

@lobinuxsoft

On OSTree/atomic distros (Bazzite, Anatase) /home is a symlink to /var/home. Steam's sandboxed runtime (pressure-vessel) does not resolve that symlink, so a shortcut written with Exe/StartDir under /home/user/... fails to launch — the Steam client itself logs chdir "/home/user/..." failed, errno 2 and the game never starts, even though the same path resolves fine outside the sandbox.

Confirmed on an OneXFly F1 Pro running Anatase: a game installed via CapyDeploy to ~/Games/<name> got a shortcut pointing at /home/lobby/..., and every real Steam launch attempt failed with that chdir error while manually launching the binary (resolving the path myself) worked fine.

Fix: get_user_home() in steam_utils.py must resolve the real path (os.path.realpath) before it's used to build shortcut paths, not just return the literal /home/... string.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions