Best way to invoke a text editor on a text file within a flatpak

I’ll be googling this tomorrow (some more).

But I’m sure this has been solved already and SOME of ya have it in your heads and can pop it on over to me.

Do i leave it do xdg-open and call it good? Or is there something better?

thanks in advance :slight_smile:

The basic answer is that you need to use the OpenURI portal. xdg-open as provided by flatpak-xdg-utils in the runtime will do that, so using it is fine. Alternatively, your toolkit of choice may provide an API that you can use, e.g. GtkFileLauncher.

cool. thanks.

i’m in Qt, but I’ll find whatever the equivalent is or fallback to xdg-open and put a prettier name on top.