You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
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.
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.
Activity
TingPing commentedon Jun 3, 2020
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/steamthere while leaving the normal directory alone.damianatorrpm commentedon Jun 3, 2020
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.
alexlarsson commentedon Jun 24, 2020
The recursion here makes this tricky. First
/home/tux/.var/app/com.valvesoftware.Steamgets 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.Steamsymlink 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.Steambut it ends up creating/home/tux/.var/app/com.valvesoftware.Steam/.var/app/com.valvesoftware.Steaminstead.alexlarsson commentedon Jun 24, 2020
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.
JoshNabours commentedon Jun 29, 2020
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.
nanonyme commentedon Sep 30, 2020
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.
nanonyme commentedon Oct 4, 2021
@mwleeds can you remove milestone? This is keeping 1.8 milestone open which is weird. It's already a historic one.
chrisawi commentedon Mar 27, 2024
Fixed in bubblewrap 0.9.0