<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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);">
never mind, i used the json from the old portal test, changed it a bit and it's working now
<span id="🙂">🙂</span><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> Winnie Poon <winniepoon_home@hotmail.com><br>
<b>Sent:</b> November 21, 2019 12:30 PM<br>
<b>To:</b> Jorge García <jgarciao@gmail.com>; Jan Grulich <jgrulich@redhat.com><br>
<b>Cc:</b> Flatpak List <flatpak@lists.freedesktop.org><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div dir="ltr">
<div>Thank you everyone for the useful suggestions!</div>
<div><br>
</div>
<div>I'm looking at the libportal and under libportal/portal-test, there's no json file?  how to build the org.gnome.PortalTest to try it out?</div>
<div><br>
</div>
<div><br>
<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="x_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_x_gmail_quote">
<div dir="ltr" class="x_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_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-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">On Ãºterý 19. listopadu 2019 22:53:19 CET Winnie Poon wrote:</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> Hi,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> </p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> i'm trying to find a simple example on github that uses the flatpak portals,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> mainly i'm interested in portal interface to access a particular file</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> (rather than doing --filesystem=host) and also access just the usb device
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> (rather than --devices=all).</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> </p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">> Can anyone point me to a simple example with above info?</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;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-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">Links:</p>
<p style="margin-top: 0px; margin-bottom: 0px;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-top: 0px; margin-bottom: 0px;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-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px"> </p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">Regards,</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin:0px; text-indent:0px">Jan</p>
<p style="margin-top: 0px; margin-bottom: 0px;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>
</div>
</div>
</body>
</html>