Portal access to local files.
Alec Leamas
leamas.alec at gmail.com
Tue Jun 15 16:24:16 UTC 2021
Hi,
On 15/06/2021 15:19, Simon McVittie wrote:
> On Tue, 15 Jun 2021 at 14:46:42 +0200, Alec Leamas wrote:
>> Hm... let me try a little more here. After all, feeding the sandboxed
>> xdg-open with a local HTML file in the from the main application in the
>> sandbox works just fine. Our problems seems to about plugins, which are
>> dl-loaded flatpak extensions. It's the data here which doesn't seem to
>> to be visible to xdg-open. I'll dig a little more when there is time.
>
> My guess would be that the filesystem-handling code in
> xdg-desktop-portal (approximately the same place I changed recently in
> https://github.com/flatpak/xdg-desktop-portal/pull/590) doesn't know
> how to remap paths that belong to extensions, only the main app and runtime.
Thanks for useful input!
Seems indeed to be the case. My (test) data file lives in the ShipDriver
plugin. It's available as
/var/data/opencpn/plugins/ShipDriver_pi/data/test.html in the sandbox.
Invoking xdg-open in the sandbox on this file doesn't seem to trigger
anything. The return code is 0.
Time to file a bug: https://github.com/flatpak/xdg-desktop-portal/issues/592
In a better world I should be able to make a PR to fix that. Seems like
an uphill battle, though.
Cheers!
--alec
More information about the Flatpak
mailing list