Accessing system tools from an application

Alexander Larsson alexl at redhat.com
Mon Aug 6 12:58:47 UTC 2018


On Tue, Jul 3, 2018 at 7:23 AM Grzegorz Antoniak <ga at anadoxin.org> wrote:
>
> Hello,
>
> I've installed Flatpak'd version of Visual Studio Code. One of its extensions wants to use the system Java installation, installed in `/usr/lib/jvm`.
>
> Is it possible to "forward" the `/usr` directory to the flatpak's sandboxed application?
>
> I can see that I can use `--env` to forward environment variables and that works OK. I've also tried to use `--filesystem=/usr:ro` but I haven't noticed this changing the situation.
>
> Do Flatpak supports i.e. sharing host `/usr` as a sandboxed directory i.e. `/host_usr` (that would be enough for me I think)?

If you have --filesystem=host access, then the root /usr is in /run/host/usr.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                Red Hat, Inc
       alexl at redhat.com         alexander.larsson at gmail.com


More information about the Flatpak mailing list