<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="gmail_quote"><div dir="ltr" class="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="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>