https://bugs.kde.org/show_bug.cgi?id=476796

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
            Summary|Document portal does not    |When opening files via the
                   |remember previously opened  |portal, the app loses
                   |files                       |access to them when quit
                   |                            |and restarted
             Status|NEEDSINFO                   |CONFIRMED
           Keywords|                            |usability
         Resolution|WAITINGFORINFO              |---

--- Comment #4 from Nate Graham <[email protected]> ---
Aha. Yeah this isn't a KDE issue, it's kind of an issue with how Flatpak and
portals work in the first place. When you select a file, the app gets a
temporary license to open that file. Once it does, the access is revoked. This
breaks use cases where you want an application to automatically open files on
launch, as you're doing.

I think this requires discussion upstream for some kind of session restore
support whereby apps can register their current state and get the ability to
restore it on launch.

We could implement what the GNOME portal does, but it's a hack, as there's no
guarantee that the last-used folder is the folder where the files needed by the
app are actually located. Maybe until  upstream support for some kind of
sesison restore materializes, we could give the app permanent access to *all*
files that the user has deliberately opened via the portalized open dialog

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to