flatpak portal example on github
Winnie Poon
winniepoon_home at hotmail.com
Thu Nov 21 22:11:24 UTC 2019
never mind, i used the json from the old portal test, changed it a bit and it's working now 🙂
________________________________
From: Winnie Poon <winniepoon_home at hotmail.com>
Sent: November 21, 2019 12:30 PM
To: Jorge García <jgarciao at gmail.com>; Jan Grulich <jgrulich at redhat.com>
Cc: Flatpak List <flatpak at lists.freedesktop.org>
Subject: Re: flatpak portal example on github
Thank you everyone for the useful suggestions!
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?
________________________________
From: Jorge García <jgarciao at gmail.com>
Sent: November 20, 2019 6:28 AM
To: Jan Grulich <jgrulich at redhat.com>
Cc: Flatpak List <flatpak at lists.freedesktop.org>; Winnie Poon <winniepoon_home at hotmail.com>
Subject: Re: flatpak portal example on github
Hi,
There is also libportal, which is a lib to make it easy to call most flatpak portals
https://github.com/flatpak/libportal
Note that it's a quite new library (still in version 0.0.2)
Regards,
Jorge
Missatge de Jan Grulich <jgrulich at redhat.com<mailto:jgrulich at redhat.com>> del dia dc., 20 de nov. 2019 a les 9:13:
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
- https://phabricator.kde.org/source/xdg-portal-test-kde/
Regards,
Jan
_______________________________________________
Flatpak mailing list
Flatpak at lists.freedesktop.org<mailto:Flatpak at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/flatpak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20191121/6a791a3b/attachment-0001.html>
More information about the Flatpak
mailing list