Comment 1 for bug 2045441

Revision history for this message
James Carroll (james-carroll) wrote :

The `/run/` path isn't really meant to be shown to users. It appearing at all is a quirk of the design of the XDG portals being used in the Snap, and I'm imagining trying to use the portals on documents already in the portals is causing some circular logic that's causing this problem.

I'd expect that the "save" button works fine, it's exclusively "Save As" trying to create a new file over the old one, that already happens to be in the portals documents storage.

In 22.04, you'd be less likely to experience this, as the portals should identify files in $HOME and /mnt or /media as being inside the scope of the sandbox anyway, and so shouldn't treat the path specially.

And apparently in v1.18 of the portals, this is fixed entirely; the portals will automatically convert the `/run` path back into the real path automatically. Unfortunately for Ubuntu this means using 23.10 or newer.

It might be possible for Pinta to workaround this (can we force "Save As" to default to $HOME?), but in theory it's already fixed now at least if you're on a newer base distribution.