Hi there,
If I install an application via flatpak that needs to access tools that I’ve installed in a toolbox, what is the idiomatic way to achieve that in Silverblue?
My concrete example is that I’ve installed the IntelliJ IDE from flatpak, but it needs access to some compiler tools that I’ve installed only in a toolbox. Separately these appear to be the recommended way to do things in Silverblue.
Should I be launching my flatpak app from inside the toolbox? If so, is there an easy way to make launcher icons for that or do I need to do that from a command line?
Flatpaks are run in their own root filesystem just like toolboxes so they can not easily access each others system installed binaries. They only get access to shared content from the user home directory.
So using flatpak-spawn in this case doesn’t seem to be compatible with IntelliJ’s Rust plugin. The configuration for that plugin expects to be pointed at the rust installation folder (see screenshot below). I could try creating a folder containing scripts with the same names as regular rust binaries that each try to call flatpak-spawn, but that doesn’t seem straight forward.
In this particular case of the rust toolchain there are plenty of workarounds (such as installing using rpm-ostree, or manually into my home directory), but it’s a shame that I cannot easily use my toolbox environment from the IntelliJ flatpak app.