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
{{ message }}
Repository navigation
bwrap: Can't make symlink at /home/<username>/Pictures: File exists #2387
I've seen this before, and then it went away or I deleted the symlink and let steam recreate it or something. Why does this keep coming up? Why does steam care about these directories that my Desktop Env manages? This is non-standard behavior. Steam is already using .local/share/flatpak/app/... . Why does steam care about anything in $HOME?
Several other similar bugs exist, but the closest one is bug #1278, which is closed, yet he problem still exists.
Steps to reproduce
$ flatpak run com.valvesoftware.Steam
bwrap: Can't make symlink at /home/pdestefa/Pictures: File exists
Reacted by Rajas Paranjpe, rugk and Štěpán Aubrecht
I've have the same with my ~/Music folder.
My Music folder is a symlink which points to an external drive.
I have to rename my ~/Music folder, after which steam starts file. Once steam is started I can rename the Music folder back again.
I've read somewhere, and I'm sorry I cannot find the source anymore, that this is an issue with symlinks in ~ where ~ is persisted.
However, there are obvious workarounds like removing the symbolic link or renaming it. See also #4894 (comment) for a wild idea that is said to partially work.
I see the issue is closed, but the problem seems to persist in flatpak 1.14.6. Example for Heroic games with a symlinked desktop:
bwrap: Can't make symlink at /home/me/desktop: File exists
Looks like this will be coming to 1.15.7, but that is a preview release, not stable. Please release the fix in a stable version before closing the issue. Also would be great to confirm the fix with users before closing.
I found a different solution in the meantime...switched problematic packages to AppImage, no more issues with symlinks.
The issue was fixed in bubblewrap 0.9.0. I've personally tested several of the related issues (likely including this one) to confirm that.
Flatpak 1.15.7 is the first version to update its bundled copy, but most users would be getting bubblewrap separately packaged by their distro. As far as I can tell, bubblewrap doesn't use an even-odd versioning scheme, so that would be a suitable update candidate depending on your distro's update policy.
In any case, bug trackers don't keep issues open that have been fixed. If you can reproduce it with bubblewrap 0.9.0, we can re-evaluate.
This raises more questions that answers though - why is a critical dependency of flatpak like bubblewrap left up to OS maintainers? Shouldn't it be bundled into flatpak so they are built and released together? (As you say, that's how the flatpak git repo works with bubblewrap as a git submodule, I assumed they were released as such as well, but I was mistaken. I see other projects use bubblewrap as well, but I would suggest that they bundle their own bubblewrap versions rather than falling back to everyone sharing the same bubblewrap, or else flatpak itself not rely on the OS package and bundle its own bubblewrap.)
bug trackers don't keep issues open that have been fixed.
I define 'fixed' as 'a resolution is available to the vast majority of users'. I'm on Ubuntu 22.04, likely the most popular Linux flavor and version, and the bubblewrap package is at 0.6.1 even when using the flatpak ppa. I would say that is not 'fixed' by my definition - I would have to seek out a ppa for bubblewrap (which there doesn't seem to be one) or build from scratch and hope it is the right version to coincide with the stable flatpak version. Simply suggesting the bleeding edge mainline has a fix doesn't constitute 'fixed' in my user-centric development model - it needs to be available in the stable build available to most users. And pushing the issue off to OS maintainers to update a critical dependency seems like a recipe for fixes not reaching most users in a timely fashion. To my understanding this is one of the fundamental problems flatpak is trying to solve, timely releases that avoid relying on a distro's package maintainers, yet seems to be occurring here. "Upgrade your entire OS or switch distros to get a upgraded dependency package for flatpak, or pester your distro maintainers" should not be a solution for almost any flatpak issue.
I will leave it at that for now as I already have a solution to this quagmire which is "find an alternative to flatpak when the symlink issue comes up". Just wanted to let the flatpak devs know that will be a likely route users will take when issues like this come up and they are marked as "fixed" when that isn't true for most users.
Reacted by Teoh Han Hui, Vicente Maroto Garzón, Bruce Cowan and Martin
This raises more questions that answers though - why is a critical dependency of flatpak like bubblewrap left up to OS maintainers? Shouldn't it be bundled into flatpak so they are built and released together? (As you say, that's how the flatpak git repo works with bubblewrap as a git submodule, I assumed they were released as such as well, but I was mistaken. I see other projects use bubblewrap as well, but I would suggest that they bundle their own bubblewrap versions rather than falling back to everyone sharing the same bubblewrap, or else flatpak itself not rely on the OS package and bundle its own bubblewrap.)
bug trackers don't keep issues open that have been fixed.
I define 'fixed' as 'a resolution is available to the vast majority of users'. I'm on Ubuntu 22.04, likely the most popular Linux flavor and version, and the bubblewrap package is at 0.6.1 even when using the flatpak ppa. I would say that is not 'fixed' by my definition - I would have to seek out a ppa for bubblewrap (which there doesn't seem to be one) or build from scratch and hope it is the right version to coincide with the stable flatpak version. Simply suggesting the bleeding edge mainline has a fix doesn't constitute 'fixed' in my user-centric development model - it needs to be available in the stable build available to most users. And pushing the issue off to OS maintainers to update a critical dependency seems like a recipe for fixes not reaching most users in a timely fashion. To my understanding this is one of the fundamental problems flatpak is trying to solve, timely releases that avoid relying on a distro's package maintainers, yet seems to be occurring here. "Upgrade your entire OS or switch distros to get a upgraded dependency package for flatpak, or pester your distro maintainers" should not be a solution for almost any flatpak issue.
I will leave it at that for now as I already have a solution to this quagmire which is "find an alternative to flatpak when the symlink issue comes up". Just wanted to let the flatpak devs know that will be a likely route users will take when issues like this come up and they are marked as "fixed" when that isn't true for most users.
This is the upstream bug tracker. If you have an issue with how your distro packages flatpak/bwrap, please report them to your distro's package maintainers instead. This kind of messages waste other people and project developers's valuable time.
I'm on Fedora 40 with flatpak 1.15.8 and this issue still remain. I've switch Pictures page by a symlink to another path, and always I run Steam, this problem occurs.
There seems to be some alternative workaround available, but I don't know exactly what.
I reinstalled a fresh new Fedora 39 some time back, which magically resolved this issue. It now fails again, and what I did to break it was to configure subuids, fix up SELinux permissions on my container directory, and run podman.
Is there some interaction there that can bypass the problem?
I removed the subuids again, but unfortunately that did not get things working again.
I just got the same issue on Fedora 40 with flatpak 1.15.10, bwrap 0.10.0.
$ flatpak run com.valvesoftware.Steam
bwrap: Can't make symlink at /home/delay/Music: destination exists and is not a symlink
$ file ~/Music
/home/delay/Music: symbolic link to /media/hdd/Media/Music
$ flatpak --version
Flatpak 1.15.10
$ bwrap --version
bubblewrap 0.10.0
Not sure why it says the destination is not a symlink, because it is. Removing this link allows steam to run, creating it again makes this error appear again.
@MoreDelay I believe that error is from inside the sandbox namespace, so it's referring to ~/.var/app/com.valvesoftware.Steam/Music on the host. That file apparently isn't a symlink; if you remove it, it should be recreated correctly.
I'd guess that you ran Steam with --filesystem=~/Music while ~/Music was a directory, and so flatpak created a matching mountpoint directory inside the app data dir. Normally that directory would have been ephemeral, but Steam uses --persist=. to persist the entire home directory, so it also persists. This is an unfortunate interaction. It might be worth opening a new issue although I'm not sure how likely a fix is.
Looks like you are right, that fixed the issue. I guess then that is an issue with the steam flatpak, not with flatpak itself. Thanks for helping me out. Although I would say the error message is wildly misleading so it is hard to figure this out yourself. I would never have guessed that an absolute path in a message is actually refering to somewhere else. But I suppose it can be difficult to make that clearer too due to the sandboxing and changing roots involved.
Activity
ioogithub commentedon Nov 28, 2019
I have the same problem but with Music
$ flatpak run com.valvesoftware.Steam
bwrap: Can't make symlink at /home/oem/Music: File exists
strootje commentedon May 26, 2020
I've have the same with my ~/Music folder.
My Music folder is a symlink which points to an external drive.
I have to rename my ~/Music folder, after which steam starts file. Once steam is started I can rename the Music folder back again.
I've read somewhere, and I'm sorry I cannot find the source anymore, that this is an issue with symlinks in ~ where ~ is persisted.
This seems to have fixed this:
#1971
I ran
xdg-user-dirs-update --set MUSIC /mnt/nas/musicRossComputerGuy commentedon Oct 24, 2022
I have the same problem on nixOS except it wants to symlink
~/.nix-profile.Justinzobel commentedon May 23, 2023
Still an issue on 1.15.4
hideki2k02 commentedon Feb 11, 2024
I'm getting a similar problem but its because i made a script that runs at startup to generate a symlink at
/run/user/1000/discord-ipc-0bwrap: Can't make symlink at /run/user/1000/discord-ipc-0: File existsOne thing that is worth noting is that if its a hardlink Flatpak wont complain, so the current workarounds:
PS: Maybe a way to fix this is to just clear all symlinks once the program closes/Just ignore the symlink if it already exists for some reason.
shvetsnikita commentedon Feb 17, 2024
Is there any way to workaround this by maybe changing something in Flatseal?
rugk commentedon Mar 7, 2024
Well… even removing the permissions does not work, see flathub/com.valvesoftware.Steam#887
However, there are obvious workarounds like removing the symbolic link or renaming it. See also #4894 (comment) for a wild idea that is said to partially work.
shvetsnikita commentedon Mar 14, 2024
@rugk
As I found out replacing symlinks with fstab binds works too, and x-gvfs-hide flag hide it from Nautilus.
Update submodule: bubblewrap 0.9.0
Update submodule: bubblewrap 0.9.0
Update submodule: bubblewrap 0.9.0
holocronweaver commentedon Jun 4, 2024
I see the issue is closed, but the problem seems to persist in flatpak
1.14.6. Example for Heroic games with a symlinked desktop:Looks like this will be coming to 1.15.7, but that is a preview release, not stable. Please release the fix in a stable version before closing the issue. Also would be great to confirm the fix with users before closing.
I found a different solution in the meantime...switched problematic packages to AppImage, no more issues with symlinks.
chrisawi commentedon Jun 4, 2024
@holocronweaver
The issue was fixed in bubblewrap 0.9.0. I've personally tested several of the related issues (likely including this one) to confirm that.
Flatpak 1.15.7 is the first version to update its bundled copy, but most users would be getting bubblewrap separately packaged by their distro. As far as I can tell, bubblewrap doesn't use an even-odd versioning scheme, so that would be a suitable update candidate depending on your distro's update policy.
In any case, bug trackers don't keep issues open that have been fixed. If you can reproduce it with bubblewrap 0.9.0, we can re-evaluate.
holocronweaver commentedon Jun 4, 2024
Thanks for the clarification.
This raises more questions that answers though - why is a critical dependency of flatpak like bubblewrap left up to OS maintainers? Shouldn't it be bundled into flatpak so they are built and released together? (As you say, that's how the flatpak git repo works with bubblewrap as a git submodule, I assumed they were released as such as well, but I was mistaken. I see other projects use bubblewrap as well, but I would suggest that they bundle their own bubblewrap versions rather than falling back to everyone sharing the same bubblewrap, or else flatpak itself not rely on the OS package and bundle its own bubblewrap.)
I define 'fixed' as 'a resolution is available to the vast majority of users'. I'm on Ubuntu 22.04, likely the most popular Linux flavor and version, and the bubblewrap package is at 0.6.1 even when using the flatpak ppa. I would say that is not 'fixed' by my definition - I would have to seek out a ppa for bubblewrap (which there doesn't seem to be one) or build from scratch and hope it is the right version to coincide with the stable flatpak version. Simply suggesting the bleeding edge mainline has a fix doesn't constitute 'fixed' in my user-centric development model - it needs to be available in the stable build available to most users. And pushing the issue off to OS maintainers to update a critical dependency seems like a recipe for fixes not reaching most users in a timely fashion. To my understanding this is one of the fundamental problems flatpak is trying to solve, timely releases that avoid relying on a distro's package maintainers, yet seems to be occurring here. "Upgrade your entire OS or switch distros to get a upgraded dependency package for flatpak, or pester your distro maintainers" should not be a solution for almost any flatpak issue.
I will leave it at that for now as I already have a solution to this quagmire which is "find an alternative to flatpak when the symlink issue comes up". Just wanted to let the flatpak devs know that will be a likely route users will take when issues like this come up and they are marked as "fixed" when that isn't true for most users.
C-512L commentedon Jun 4, 2024
This is the upstream bug tracker. If you have an issue with how your distro packages flatpak/bwrap, please report them to your distro's package maintainers instead. This kind of messages waste other people and project developers's valuable time.
RenanSantos7 commentedon Jun 13, 2024
I'm on Fedora 40 with flatpak 1.15.8 and this issue still remain. I've switch Pictures page by a symlink to another path, and always I run Steam, this problem occurs.
I have to recreate Pictures folder to "fix" it.
C-512L commentedon Jun 13, 2024
CendioOssman commentedon Aug 6, 2024
There seems to be some alternative workaround available, but I don't know exactly what.
I reinstalled a fresh new Fedora 39 some time back, which magically resolved this issue. It now fails again, and what I did to break it was to configure subuids, fix up SELinux permissions on my container directory, and run podman.
Is there some interaction there that can bypass the problem?
I removed the subuids again, but unfortunately that did not get things working again.
MoreDelay commentedon Sep 19, 2024
I just got the same issue on Fedora 40 with flatpak 1.15.10, bwrap 0.10.0.
Not sure why it says the destination is not a symlink, because it is. Removing this link allows steam to run, creating it again makes this error appear again.
chrisawi commentedon Sep 20, 2024
@MoreDelay I believe that error is from inside the sandbox namespace, so it's referring to
~/.var/app/com.valvesoftware.Steam/Musicon the host. That file apparently isn't a symlink; if you remove it, it should be recreated correctly.I'd guess that you ran Steam with
--filesystem=~/Musicwhile~/Musicwas a directory, and so flatpak created a matching mountpoint directory inside the app data dir. Normally that directory would have been ephemeral, but Steam uses--persist=.to persist the entire home directory, so it also persists. This is an unfortunate interaction. It might be worth opening a new issue although I'm not sure how likely a fix is.MoreDelay commentedon Sep 20, 2024
Looks like you are right, that fixed the issue. I guess then that is an issue with the steam flatpak, not with flatpak itself. Thanks for helping me out. Although I would say the error message is wildly misleading so it is hard to figure this out yourself. I would never have guessed that an absolute path in a message is actually refering to somewhere else. But I suppose it can be difficult to make that clearer too due to the sandboxing and changing roots involved.
rugk commentedon Sep 23, 2024
So then please report it there: https://github.com/flathub/com.valvesoftware.Steam/issues/
rugk commentedon Oct 7, 2025
Hmm, is there a regression? In a new flatpak installation this again does not work anymore?