Launching Flatpak inside Flatpak

Hello everyone,

I am trying to allow a Flatpak application to launch certain other Flatpak applications, and I am wondering what is the best way to do this. Think of a launcher that must start up another Flatpak while providing a number of flags to it.

So far the best solution I have come up with is overriding the default permissions for said application by allowing it to talk to the org.freedesktop.Flatpak session service:

flatpak override com.packagename.App --talk-name=org.freedesktop.Flatpak

However this means that the application can launch any Flatpak command using flatpak-spawn --host.

Does anyone know if:

  • there’s a better way to do this,
  • it’s possible to allow an application to launch only specific applications,
  • this would have any side-effects?

Thank you!

flatpak-spawn --host is currently the only way to launch another Flatpak

1 Like

I see, thank you. And the proper way to allow this is still via --talk-name=org.freedesktop.Flatpak, correct?