How do I run multiple runtimes at the same time in flatpak?

Let’s say I want to build a source code from within flatpak such as

    flatpak run -d --command=sh   org.gnome.Sdk org.freedesktop.Sdk//1.6

but it won’t allow me to run both of them at the same time.

How can can I reach both SDK at the same time?

You can’t. (It might be possible by mounting the runtimes as extensions, but even if you got it to work, I wouldn’t recommend it.) The runtimes are not designed for that and they would conflict with each other.

However, in this particular case, you are in luck! The org.gnome.Sdk runtime already includes everything in the org.freedesktop.Sdk runtime, so you don’t need to run both of them.

1 Like