<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Jorge,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Winnie<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Jorge García <jgarciao@gmail.com><br>
<b>Sent:</b> November 20, 2019 6:28 AM<br>
<b>To:</b> Jan Grulich <jgrulich@redhat.com><br>
<b>Cc:</b> Flatpak List <flatpak@lists.freedesktop.org>; Winnie Poon <winniepoon_home@hotmail.com><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div></div>
<div>Hi,</div>
<div><br>
</div>
<div>There is also libportal, which is a lib to make it easy to call most flatpak portals<br>
</div>
<div><a href="https://github.com/flatpak/libportal">https://github.com/flatpak/libportal</a></div>
<div><br>
</div>
<div></div>
<div>Note that it's a quite new library (still in version 0.0.2)<br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Jorge</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Missatge de Jan Grulich <<a href="mailto:jgrulich@redhat.com">jgrulich@redhat.com</a>> del dia dc., 20 de nov. 2019 a les 9:13:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<u></u>
<div style="font-family:"Sans Serif"; font-size:10pt; font-weight:400; font-style:normal">
<p style="margin:0px; text-indent:0px">Hi,</p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">On úterý 19. listopadu 2019 22:53:19 CET Winnie Poon wrote:</p>
<p style="margin:0px; text-indent:0px">> Hi,</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> i'm trying to find a simple example on github that uses the flatpak portals,</p>
<p style="margin:0px; text-indent:0px">> mainly i'm interested in portal interface to access a particular file</p>
<p style="margin:0px; text-indent:0px">> (rather than doing --filesystem=host) and also access just the usb device
</p>
<p style="margin:0px; text-indent:0px">> (rather than --devices=all).</p>
<p style="margin:0px; text-indent:0px">> </p>
<p style="margin:0px; text-indent:0px">> Can anyone point me to a simple example with above info?</p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">We have a demo application where some portals are used, but the point of portals is that you shouldn't really care, you don't need to implement them yourself, you basically need to just use regular Qt API (QFileChooser)
 and the portal will be magically used without you even knowing. There is also our KDE version of portal-test applications, doing the same, just with KDE and Qt API.</p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">Links:</p>
<p style="margin:0px; text-indent:0px">- <a href="https://github.com/flatpak/qt-flatpak-demo" target="_blank">
<span style="text-decoration:underline; color:rgb(41,128,185)">https://github.com/flatpak/qt-flatpak-demo</span></a></p>
<p style="margin:0px; text-indent:0px">- <a href="https://phabricator.kde.org/source/xdg-portal-test-kde/" target="_blank">
<span style="text-decoration:underline; color:rgb(41,128,185)">https://phabricator.kde.org/source/xdg-portal-test-kde/</span></a></p>
<p style="margin:0px; text-indent:0px"> </p>
<p style="margin:0px; text-indent:0px">Regards,</p>
<p style="margin:0px; text-indent:0px">Jan</p>
<p style="margin:0px; text-indent:0px"> </p>
</div>
_______________________________________________<br>
Flatpak mailing list<br>
<a href="mailto:Flatpak@lists.freedesktop.org" target="_blank">Flatpak@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a></blockquote>
</div>
</div>
</div>
</body>
</html>