VSCode case: how to make host binaries available to flatpak app?

Muayyad AlSadi alsadi at gmail.com
Sun Mar 4 10:54:05 UTC 2018


you might pass --filesystem=FILESYSTEM[:ro] to "flatpak run"
does this help you?

> not involving proving access to host filesystem?

it can be read-only access

> Are there any other approaches,

maybe shipping those runtimes as flatpak SDKs
just like gnome builder




On Sat, Mar 3, 2018 at 6:59 PM, Max Ivanov <ivanov.maxim at gmail.com> wrote:

> I am trying flatpak for the first time and started with installing
> Visual Studio Code. It runs just fine, but
> doesn't seem very usable as it expects certain software  to be
> available to it: app runtimes, compilers, VCS tools. Certain runtimes
> can be made available via lets say ~/opt/ ,such as node or Go, but it
> is more problematic for other type of software - GCC, Perl, etc.
>
> VSCode flatpak authors had to bundle Git to make it more practical,
> but it is unrealistic to expect them to bundle everything developer
> might need. Usually all these tools can be found on a host system in a
> working state, but it comes in conflict with flatpak sandboxing
> approach.
>
> Does Flatpak have plan to address it? Is it even technically possible?
>
> If providing access to host system is something flatpak would allow,
> how one would go around things like RPATH recorded in binaries? Only
> thing I can think of is lets say mount how filesystem to /host and
> then install wrapper binaries for everything in PATH, those binaries
> would chroot into /host and execute real binary from there.
>
> Are there any other approaches, not involving proving access to host
> filesystem? Like packaging runtimes as optional "addon" apps, and then
> let flatpak user to "mount" them into flatpak app sandbox of their
> choice.
> _______________________________________________
> 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/20180304/bb25952a/attachment.html>


More information about the Flatpak mailing list