Skip to content

steam symlink no longer works #3651

Closed
Closed

Description

@damianatorrpm

Flatpak version

git latest

Something seems to have changed either in flatpak or steam
From flatpak-run.c ~3678:

       * actually be a symlink for other reasons. Imagine for instance that you want to put the
       * steam games somewhere else so you leave the app dir as a symlink to /mnt/steam.

So before starting steam the first time I symlinked it to another folder.
There seem to be some weird recursions, anyway once steam closes,
it will not start up again unless the content of the var/app/steam is removed.
It fails with:
bwrap: Can't make symlink at /home/tux/.var/app/com.valvesoftware.Steam: File exists
Which is true it's a symlink already?

Activity

  1. TingPing commented on Jun 3, 2020

    @TingPing
    Member

    I know this isn't related to your core point but in-case this wasn't clear to you in Steam you can configure library directories and just add /mnt/steam there while leaving the normal directory alone.

  2. damianatorrpm commented on Jun 3, 2020

    @damianatorrpm
    Author

    For one example you will first need to add permissions, if you reinstall the flatpak or the OS re-add the permissions or override them globally, also what happens to Games that are not supported on Linux (via Proton but untested) for which you need to be beta-opted-in, install them and than suddenly you are not beta-opted-in?

    I mean the source code comments says it should work.

  3. added this to the 1.8 milestone on Jun 17, 2020
  4. alexlarsson commented on Jun 24, 2020

    @alexlarsson
    Member

    The recursion here makes this tricky. First /home/tux/.var/app/com.valvesoftware.Steam gets mounted on top of /home/tux in the sandbox from the --persist=.. Then we want to expose the app dir to the app on top of that, but the host appdir is a symlink, and we want to expose it as such, so we create a /home/tux/.var/app/com.valvesoftware.Steam/.var/app/com.valvesoftware.Steam symlink to the real directory.

    Then the next time around we run the app we get confused by the pre-existing symlink, because we're not properly handing the --persist=. so we belive we're creating /home/tux/.var/app/com.valvesoftware.Steam but it ends up creating /home/tux/.var/app/com.valvesoftware.Steam/.var/app/com.valvesoftware.Steam instead.

  5. alexlarsson commented on Jun 24, 2020

    @alexlarsson
    Member

    Its not entirely obvious how to fix this, because keeping track of all the possible mappings is hard.

    However, from a practical perspective its solvable by making ~/.var/app/com.valvesoftware.Steam/.steam the symlink instead.

  6. JoshNabours commented on Jun 29, 2020

    @JoshNabours

    I also had this same issue upon closing steam. It would run fine until I used the command flatpak override --user --filesystem=/home/Username/SymlinkFolder/To/SteamLibrary/on/ExternalDrive com.valvesoftware.Steam
    I intended to give steam access to a mounted external drive on which to have my game libraries.
    Steam does have access to the drive just fine when you allow it to access the mounted drive after Steam was started. after closing Steam it will not re-open giving the same error as damianatorrpm was having. In my case it was "bwrap: Can't make symlink at /home/Username/SymlinkFolder/To/SteamLibrary/on/ExternalDrive : File exists"

    I did try running the command: flatpak override --user --filesystem=/~/SymlinkFolder/To/SteamLibrary/on/ExternalDrive com.valvesoftware.Steam as alexlarsson seemed to suggest in his second comment but it made no difference.

    @alexlarsson From the way your comment is worded I understood you to mean that these directory structures are setup to be persistent even after the program is stopped and it also seems like the way they are tracked is by the existence of the structures themselves. Wouldn't a simple and elegant enough solution be to have what is effectively a "config file" for all persistent directory structures like this and to then make them dynamically upon running the program? This way you don't have to track how any given directory would be mounted for any given instance of the program.

    Side notes: I literally found out about Flatpak yesterday so I probably don't know what I am talking about. I am also brand new on Github so please let me know of any commonly known rules I would not be aware of. Especially if I am breaking them on my first ever comment.

  7. nanonyme commented on Sep 30, 2020

    @nanonyme
    Contributor

    Note that Steam does support having games outside Steam directory https://github.com/flathub/com.valvesoftware.Steam/wiki/Frequently-asked-questions#i-want-to-add-external-disk-for-steam-libraries; when you use builtin Steam facilities instead of trying to do something fancy with symlinks, things typically work fine.

  8. nanonyme commented on Oct 4, 2021

    @nanonyme
    Contributor

    @mwleeds can you remove milestone? This is keeping 1.8 milestone open which is weird. It's already a historic one.

  9. removed this from the 1.8 milestone on Oct 17, 2021
  10. chrisawi commented on Mar 27, 2024

    @chrisawi
    Collaborator

    Fixed in bubblewrap 0.9.0

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions