<div dir="ltr"><div><div>I was expecting this answer. <br><br></div>If I understand well the architecture, the webbrowser-app needs to declare the bookmark file as an export through the ContentHub and then only I can access it (also through the ContentHub).<br></div><div><div><br>Thank you for the clarification. <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-02 19:50 GMT+02:00 Olivier Tilloy <span dir="ltr"><<a href="mailto:olivier.tilloy@canonical.com" target="_blank">olivier.tilloy@canonical.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jun 2, 2016 at 6:20 PM, Bertrand CHEVRIER<br>
<<a href="mailto:chevrier.bertrand@gmail.com">chevrier.bertrand@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm in the process of developing a scope. The goal is to list the bookmarks<br>
> from the webbrowser-app.<br>
><br>
> After reading the documentation and reading the setting up my environment,<br>
> this seems pretty straight forward, except that I don't know how to access<br>
> the bookmark database within a confined env.<br>
><br>
> Basically I need to read (or copy) the file<br>
> /home/phablet/.local/share/webbrowser-<br>
> app/bookmarks.sqlite<br>
><br>
> I went through the documentation of the AppArmor but it seems none of the<br>
> policy group allows me to do that, right ?<br>
><br>
> So what would be the way to access this file (in read only) from my scope ?<br>
<br>
</span>That’s not allowed for confined applications/scopes.<br>
Only webbrowser-app (and unconfined processes) is allowed to<br>
read/write to /home/phablet/.local/share/webbrowser-app/.<br>
<br>
What would be needed is for the browser to grow a content export<br>
capability to expose its bookmarks database. That feature doesn’t<br>
exist at the moment and isn’t planned though.<br>
<br>
Another approach would be to have that scope be part of the<br>
webbrowser-app package, so that it gets the same permissions as the<br>
browser app.<br>
<br>
Cheers,<br>
<br>
 Olivier<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><a href="http://krampstudio.com" target="_blank">http://krampstudio.com</a><br><a href="http://github.com/krampstudio" target="_blank">http://github.com/krampstudio</a><br><a href="https://twitter.com/kramp" target="_blank">https://twitter.com/kramp</a></div>
</div>