I’m making my app provide rich presence data to Discord, and have consulted the instructions provided by the maintainers of the Discord flatpak.
As such, I’ve put "--filesystem=xdg-run/app/com.discordapp.Discord:create"
in the finish-args of my app. It builds fine, but when I attempt to run it (from GNOME Builder), I get this error before my app exits:
bwrap: Can't make symlink at /run/user/1000/app: destination exists and is not a symlink
If I export a bundle and install that on my system, though, it runs fine, so I guess I’ve encountered a Builder quirk here. It only seems to happen when the app is given access to xdg-run/app or any subfolders of that, not anything else such as xdg-music. Does anybody have an idea of what’s going on, and how I can work around it / fix it?
The source code of my endeavour in its current state can be found on GitHub.
I’m using version 47.2 of Builder, if that’s relevant.