flatpak portal example on github

Jan Grulich jgrulich at redhat.com
Wed Nov 20 08:13:10 UTC 2019


Hi,

On úterý 19. listopadu 2019 22:53:19 CET Winnie Poon wrote:
> Hi,
> 
> 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).
> 
> Can anyone point me to a simple example with above info?

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.

Links:
- https://github.com/flatpak/qt-flatpak-demo[1]
- https://phabricator.kde.org/source/xdg-portal-test-kde/[2]

Regards,
Jan


--------
[1] https://github.com/flatpak/qt-flatpak-demo
[2] https://phabricator.kde.org/source/xdg-portal-test-kde/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20191120/7d001b2c/attachment-0001.html>


More information about the Flatpak mailing list