flatpak portal example on github

Ryan rymg19 at gmail.com
Tue Nov 26 02:17:49 UTC 2019


If you're accessing USB devices you might be better off with the
--device=all permission.

On Mon, Nov 25, 2019, 7:56 PM Winnie Poon <winniepoon_home at hotmail.com>
wrote:

> Hi,
>
> i'm trying to use the GTK file chooser approach to access the usb mass
> storage (/dev/bus/usb/...), the filechooser can see the path and file, but
> it sees the file size as zero, probably because it's owned by root?
>
> how do i use the portal to access a file like this?
>
> Thanks,
> Winnie
>
> ------------------------------
> *From:* Winnie Poon <winniepoon_home at hotmail.com>
> *Sent:* November 22, 2019 5:36 PM
> *To:* Matthias Clasen <mclasen at redhat.com>
> *Cc:* Jan Grulich <jgrulich at redhat.com>; Flatpak List <
> flatpak at lists.freedesktop.org>; Jorge García <jgarciao at gmail.com>
> *Subject:* Re: flatpak portal example on github
>
> Just to clarify, i'm referring to USB mass storage here.
>
> Thanks again.
>
> ------------------------------
> *From:* Winnie Poon <winniepoon_home at hotmail.com>
> *Sent:* November 22, 2019 2:39 PM
> *To:* Matthias Clasen <mclasen at redhat.com>
> *Cc:* Jan Grulich <jgrulich at redhat.com>; Flatpak List <
> flatpak at lists.freedesktop.org>; Jorge García <jgarciao at gmail.com>
> *Subject:* Re: flatpak portal example on github
>
> Hi,
>
> Would like to ask similar question for usb drive access.
>
> Is it the org.freedesktop.portal.Device that's supposed to be used for
> granting usb drive permission?
>
> I'm having trouble finding the gtk API for that.  If anyone can point me
> to the reference, that'll be much appreciated.
>
> Many many thanks again.
>
> Winnie
>
> ------------------------------
> *From:* Flatpak <flatpak-bounces at lists.freedesktop.org> on behalf of
> Winnie Poon <winniepoon_home at hotmail.com>
> *Sent:* November 22, 2019 12:33 PM
> *To:* Matthias Clasen <mclasen at redhat.com>
> *Cc:* Jan Grulich <jgrulich at redhat.com>; Flatpak List <
> flatpak at lists.freedesktop.org>; Jorge García <jgarciao at gmail.com>
> *Subject:* Re: flatpak portal example on github
>
> Hi Matthias et al.,
>
> Thanks for all the prompt responses.  I understand what's going on now
> and it's working the way i want. :)
>
> Thanks again, you guys are awesome!
>
> Regards,
> Winnie
>
> ------------------------------
>
>
> _______________________________________________
> Flatpak mailing list
> 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/20191125/77ca5796/attachment-0001.html>


More information about the Flatpak mailing list