<div dir="auto">Maybe not *exactly* what you're looking for, but if you're familiar with D-Bus, the portal APIs are pretty easy to use: <a href="https://flatpak.github.io/xdg-desktop-portal/portal-docs.html">https://flatpak.github.io/xdg-desktop-portal/portal-docs.html</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 19, 2019, 3:53 PM Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com">winniepoon_home@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi, <br>
</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 trying to find a simple example on github that uses the flatpak portals, mainly i'm interested in portal interface to access a particular file (rather than doing --filesystem=host) and also access just the usb device  (rather than --devices=all).</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)">
Can anyone point me to a simple example with above info?<br>
</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 found this example.  Is there another similar/simpler one?<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<a href="https://github.com/matthiasclasen/portal-test/" id="m_-1731327563402856686LPlnk650450" target="_blank" rel="noreferrer">https://github.com/matthiasclasen/portal-test/</a><br>
</div>
<div id="m_-1731327563402856686LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL21hdHRoaWFzY2xhc2VuL3BvcnRhbC10ZXN0Lw.." style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
<table id="m_-1731327563402856686LPContainer801509" style="padding:12px 36px 12px 12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td>
<div id="m_-1731327563402856686LPImageContainer801509" style="margin-right:12px;height:160px;overflow:hidden">
<a id="m_-1731327563402856686LPImageAnchor801509" href="https://github.com/matthiasclasen/portal-test/" target="_blank" rel="noreferrer"><img id="m_-1731327563402856686LPThumbnailImageId801509" alt="" style="display:block" width="160" height="160" src="https://avatars3.githubusercontent.com/u/4834845?s=400&v=4"></a></div>
</td>
<td style="width:100%">
<div id="m_-1731327563402856686LPTitle801509" style="font-size:21px;font-weight:300;margin-right:8px;font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px">
<a id="m_-1731327563402856686LPUrlAnchor801509" href="https://github.com/matthiasclasen/portal-test/" style="text-decoration:none;color:var(--themePrimary)" target="_blank" rel="noreferrer">GitHub - matthiasclasen/portal-test</a></div>
<div id="m_-1731327563402856686LPDescription801509" style="font-size:14px;max-height:100px;color:rgb(102,102,102);font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden">
portal-test. A simple test application for Flatpak portals.. The portal interfaces are defined in xdg-desktop-portal.. A GTK+ implementation can be found in xdg-desktop-portal-gtk.. To use this test, first install the SDK:</div>
<div id="m_-1731327563402856686LPMetadata801509" style="font-size:14px;font-weight:400;color:rgb(166,166,166);font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif">
<a href="http://github.com" target="_blank" rel="noreferrer">github.com</a></div>
</td>
</tr>
</tbody>
</table>
</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 so much</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)">
Winnie<br>
</div>
<div><font size="2"><span style="font-size:11pt"></span></font></div>
<div>
<div><font size="2"><span style="font-size:11pt"></span></font></div>
</div>
<div></div>
</div>

_______________________________________________<br>
Flatpak mailing list<br>
<a href="mailto:Flatpak@lists.freedesktop.org" target="_blank" rel="noreferrer">Flatpak@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a></blockquote></div>