Launching defold app from external text editor (and go back editor when app is closed)

Sorry for reviving it, but running for instance xdg-open /absolute/path/to/defold-project/game.project as @astrochili suggested just opens the INI on Gnome text editor.

Am I missing something that should be done such as a xdg-mime snippet to define the correct mime type type for a .project file?

I’m on Fedora.