I’m on Pop!_OS 22.04 with Gnome, and I’ve installed Doplhin 25.04.3 from Flathub.
I want to set a default app for a specific file, so I go to “Properties” → “Open With” → “Change” and from the “File Type Editor” I want to choose a specific app from the list of installed apps (other Flatpak apps included). The problem is first that I see no apps in the list (for any file type) and second that I don’t know what to select from the OS file selector when I want to choose a Flatpak app, e.g. org.gnome.Loupe from /$HOME/.var/app/org.gnome.Loupe for images.
You probably want to have a .desktop file for your flatpak, then it is easy.
The application should be in the Graphic section I imagine, unless the .destkop file explicitly set itself to be GNOME only (Recognized desktop entry keys | Desktop Entry SpecificationOnlyShowIn), maybe Dolphin filters on KDE applications.
You can find the .destkop file in ~/.local/share/applications/org.gnome.Loupe.desktop.
Also changing file association in nautilus (GNOME Files), should apply to Dolphin too.
I tried to add ~/.local/share/applications/org.gnome.Loupe.desktop to the list but it says that it’s not a binary file.
Then, I tried to add ~/.local/share/flatpak/app/org.gnome.Loupe/current/active/files/bin/loupe and Dolphin suddenly crashed and could not be reopened. To fix that I had to remove all content of file ~/.var/app/org.kde.dolphin/config/mimeapps.list…
From the flatpak run command I see the following output:
F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak
Gtk-Message: 22:31:30.348: Failed to load module "xapp-gtk3-module"
Qt: Session management error: Could not open network socket
QApplication: invalid style override 'qt5ct' passed, ignoring it.
Available styles: Breeze, Windows, Fusion
"applications.menu" not found in QList()
ASSERT: "offer.service()->offset() != 0" in file /run/build-runtime/kservice/src/sycoca/kbuildservicefactory.cpp, line 333