<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
My attempt of using the portal is to avoid using the blanket type access --device=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);">
>From my previous inquiries here, i was told that using the portal would be an alternative way to avoid opening up all device access.
<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);">
It looks like i just need to use GTK file chooser to open up access to a particular path in /dev/bus/usb/....  the fact that the file's owned by root may make it a bit tricky, but i'm sure i should still be able to access it in the sandbox?</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);">
Much appreciated any suggestions you may have.</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,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Winnie</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<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> Ryan <rymg19@gmail.com><br>
<b>Sent:</b> November 25, 2019 6:17 PM<br>
<b>To:</b> Winnie Poon <winniepoon_home@hotmail.com><br>
<b>Cc:</b> Matthias Clasen <mclasen@redhat.com>; Jan Grulich <jgrulich@redhat.com>; Flatpak List <flatpak@lists.freedesktop.org>; Jorge García <jgarciao@gmail.com><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div>
<div dir="auto">If you're accessing USB devices you might be better off with the --device=all permission.</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Mon, Nov 25, 2019, 7:56 PM Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com">winniepoon_home@hotmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div>
<div id="x_m_923990383258522941appendonsend" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</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 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?</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)">
how do i use the portal to access a file like this?</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,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Winnie<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_923990383258522941divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com" target="_blank" rel="noreferrer">winniepoon_home@hotmail.com</a>><br>
<b>Sent:</b> November 22, 2019 5:36 PM<br>
<b>To:</b> Matthias Clasen <<a href="mailto:mclasen@redhat.com" target="_blank" rel="noreferrer">mclasen@redhat.com</a>><br>
<b>Cc:</b> Jan Grulich <<a href="mailto:jgrulich@redhat.com" target="_blank" rel="noreferrer">jgrulich@redhat.com</a>>; Flatpak List <<a href="mailto:flatpak@lists.freedesktop.org" target="_blank" rel="noreferrer">flatpak@lists.freedesktop.org</a>>; Jorge García
 <<a href="mailto:jgarciao@gmail.com" target="_blank" rel="noreferrer">jgarciao@gmail.com</a>><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div dir="ltr">
<div>
<div id="x_m_923990383258522941x_appendonsend" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Just to clarify, i'm referring to USB mass storage here.</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 again.<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_923990383258522941x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com" target="_blank" rel="noreferrer">winniepoon_home@hotmail.com</a>><br>
<b>Sent:</b> November 22, 2019 2:39 PM<br>
<b>To:</b> Matthias Clasen <<a href="mailto:mclasen@redhat.com" target="_blank" rel="noreferrer">mclasen@redhat.com</a>><br>
<b>Cc:</b> Jan Grulich <<a href="mailto:jgrulich@redhat.com" target="_blank" rel="noreferrer">jgrulich@redhat.com</a>>; Flatpak List <<a href="mailto:flatpak@lists.freedesktop.org" target="_blank" rel="noreferrer">flatpak@lists.freedesktop.org</a>>; Jorge García
 <<a href="mailto:jgarciao@gmail.com" target="_blank" rel="noreferrer">jgarciao@gmail.com</a>><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div dir="ltr">
<div>
<div id="x_m_923990383258522941x_x_appendonsend" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi,</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)">
Would like to ask similar question for usb drive access.</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)">
Is it the org.freedesktop.portal.Device that's supposed to be used for granting usb drive permission?</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 having trouble finding the gtk API for that.  If anyone can point me to the reference, that'll be much appreciated.</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)">
Many many <span id="x_m_923990383258522941x_x_SmartSuggestionsKeyword365507" title="Search for suggestions">
thanks</span> again.</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 style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<div id="x_m_923990383258522941x_x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Flatpak <<a href="mailto:flatpak-bounces@lists.freedesktop.org" target="_blank" rel="noreferrer">flatpak-bounces@lists.freedesktop.org</a>>
 on behalf of Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com" target="_blank" rel="noreferrer">winniepoon_home@hotmail.com</a>><br>
<b>Sent:</b> November 22, 2019 12:33 PM<br>
<b>To:</b> Matthias Clasen <<a href="mailto:mclasen@redhat.com" target="_blank" rel="noreferrer">mclasen@redhat.com</a>><br>
<b>Cc:</b> Jan Grulich <<a href="mailto:jgrulich@redhat.com" target="_blank" rel="noreferrer">jgrulich@redhat.com</a>>; Flatpak List <<a href="mailto:flatpak@lists.freedesktop.org" target="_blank" rel="noreferrer">flatpak@lists.freedesktop.org</a>>; Jorge García
 <<a href="mailto:jgarciao@gmail.com" target="_blank" rel="noreferrer">jgarciao@gmail.com</a>><br>
<b>Subject:</b> Re: flatpak portal example on github</font>
<div> </div>
</div>
<div dir="ltr">
<div>
<div id="x_m_923990383258522941x_x_x_appendonsend" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Matthias et al.,</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)">
<span id="x_m_923990383258522941x_x_SmartSuggestionsKeyword75257" title="Search for suggestions">Thanks</span> for all the prompt responses.  I understand what's going on now and it's working the way i want. :)</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)">
<span id="x_m_923990383258522941x_x_SmartSuggestionsKeyword778100" title="Search for suggestions">Thanks</span> again, you guys are awesome!</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)">
Regards,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Winnie<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block; width:98%">
<br>
<div>
<div dir="ltr">
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</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>
</div>
</div>
</body>
</html>