my experience with running vs code (or any IDE) from flatpak

Alexander Larsson alexl at redhat.com
Thu Feb 7 08:03:11 UTC 2019


On Wed, Feb 6, 2019 at 5:35 PM Muayyad AlSadi <alsadi at gmail.com> wrote:
>
> hi,
>
> I've installed vs code from
>
> https://flathub.org/apps/details/com.visualstudio.code.oss
>
> I've noticed that it run inside a container with minimal os
> while the host is mounted on /run/host/
>
> 1. although the minimal os has bash, it uses sh by default
> 2. many extensions did not work due to problems with host tools

Yeah, this is a problem for ide-style apps where you want to run some
arbitrary plugin-like code inside the app.
There are a few options possible here. I listed them here:
 https://discussion.fedoraproject.org/t/developing-applications-using-flatpak-packaged-editors-ides/269/6

> sh-4.3$ ls -lh /run/host/usr/bin/java
> lrwxrwxrwx 1 nfsnobody nfsnobody 22 Feb  5 16:11 /run/host/usr/bin/java -> /etc/alternatives/java

Even if the symlinks where correct you would not be able to typically
run things from /run/host/usr/bin, because they expect the rest of the
system to match the host. I.e. to have the same libraries with the
same version (same ABI) in the same place. There is no way to
guarantee this, as its basically like taking a binary from one distro
and running on another.

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


More information about the Flatpak mailing list