Let say a have Flatpak apps “AAA” that want to open a PDF reader for reading documentation or what ever, how do I do this? Do I have to include that PDF reader into Flatpak apps AAA?
But if I already have Flatpak PDF reader installed? Can I make AAA call external Flatpak PDF reader instead?
Would flatpak-spawn work in this case?
Thanks.
S
Sonny Piers
#2
Hello,
If you want to open the file with the default application on the system use gtk_show_uri_on_window.
If you want to let the user choose with which application to open the file you can use GtkAppChooserDialog.
It depends on the programming language you’re using, it’s more of how to use D-Bus then how to do the portals calls actually
C
Chris Of Bristol
#7
Let me know if this is off-topic.
If the application you want to use isn’t a standard one, it has to be included in this application’s Flatpak environment. I know of no way of doing that - apart from compiling the whole thing as part of this Flatpak.