flatpak portal example on github

Matthias Clasen mclasen at redhat.com
Fri Nov 22 00:11:23 UTC 2019


On Thu, Nov 21, 2019 at 6:03 PM Winnie Poon <winniepoon_home at hotmail.com>
wrote:

> Hi Jorge,
>
> i'm using the libportal together with the portal test example.  I'm trying
> to understand how to open a file in my home folder inside the sandbox
> without using --filesystem=/home/user.  I tried the File Chooser on the UI
> and clicked Save As but that doens't seem to copy the original file
> content, but just write "test" to a file.   I couldn't find an example how
> open up a file to be accessible inside the sandbox.  Am i looking at the
> wrong place?
>

You want to open an existing file for reading, or write something to a new
file?

Using the portal for this purpose should be essentially identical to using
a "traditional" file chooser from your toolkit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20191121/fe803af9/attachment.html>


More information about the Flatpak mailing list