Setting an external editor in Godot with the flatpak is trickier than it seems like it should be.
If I go to Editor > Editor Settings... > Text Editor > External and set the following configuration:
It fails with the warning (logged on the host only):
**ERROR** OS_Unix::execute - Could not create child process while executing: code
Eventually I figured out I could make it work by using flatpak-spawn as the executable instead, and prefixing --host code as additional arguments:
But this isn't obvious at all, especially to folks who are used to flatpak applications being set up to "just work". It would be nice if this could either be simplified or clearly documented (maybe on flathub) so that other users don't get caught on the same problem.
Setting an external editor in Godot with the flatpak is trickier than it seems like it should be.
If I go to Editor > Editor Settings... > Text Editor > External and set the following configuration:
It fails with the warning (logged on the host only):
Eventually I figured out I could make it work by using
flatpak-spawn
as the executable instead, and prefixing--host code
as additional arguments:But this isn't obvious at all, especially to folks who are used to flatpak applications being set up to "just work". It would be nice if this could either be simplified or clearly documented (maybe on flathub) so that other users don't get caught on the same problem.