1. Open Telegram-desktop (downloaded from official site) 2. Find and open a PDF file 2.1 A dialog window may open, asking which application to use. There's no Okular there 2.2 Type "okular" in search bar okular appears but does not run with the following diagnostics: $ /usr/libexec/xdg-desktop-portal -rv XDP: Opening app chooser XDP: Received choice org.kde.okular XDP: Cannot launch org.kde.okular.desktop because desktop file does not exist 'kf5-' prefix is missing, GLib maintainers refused to fix this on their side: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3653
From what I can tell by https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3653#note_1873641, this seems like it's caused by a packaging issue in your distro, which places desktop files in subdirectories. This is supported by the spec, but in practice it's such a niche feature that all sorts of things are going to break, because it makes the .desktop files names non-deterministic. Are you suggesting that the code in the KDE desktop portal is out of compliance with that spec and providing .desktop filenames incorrectly, such that clicking on Okular in the app chooser window ought to return kf5-org.kde.okular.desktop, but instead it returns org.kde.okular.desktop and fails?
> clicking on Okular in the app chooser window ought to return kf5-org.kde.okular.desktop, but instead it returns org.kde.okular.desktop and fails? You understood this correctly.
Ok. Does it reproduce from the non-portal "Open With" dialog?
(In reply to Nate Graham from comment #3) > Ok. Does it reproduce from the non-portal "Open With" dialog? Not tested.
(In reply to Nate Graham from comment #3) > Ok. Does it reproduce from the non-portal "Open With" dialog? How to invoke "non-portal" dialog?
1. Open a distro-packaged version of Dolphin (not from Flatpak) 2. Find a PDF file 3. Right-click > Open With > Other
(In reply to Nate Graham from comment #6) > 1. Open a distro-packaged version of Dolphin (not from Flatpak) > 2. Find a PDF file > 3. Right-click > Open With > Other It works
Ok, then the problem is that somehow the portal is giving us the wrong desktop file name for Okular. Does this reproduce for other apps in the portal "open with" dialog, or only Okular? If it's only Okular, I'm suspecting some kind of issue with the alias parsing.
(In reply to Nate Graham from comment #8) > Ok, then the problem is that somehow the portal is giving us the wrong > desktop file name for Okular. > > Does this reproduce for other apps in the portal "open with" dialog, or only > Okular? If it's only Okular, I'm suspecting some kind of issue with the > alias parsing. I suspect yes, but I don't have where to reproduce yet. It could be reproduced on a fresh-installed distro (haven't tried neon)