Summary: | Can't find KDE applications when distro locates their desktop files in a prefixed subfolder of /usr/share/applications; normal "Open With" dialog works fine | ||
---|---|---|---|
Product: | [Plasma] xdg-desktop-portal-kde | Reporter: | Oleg Solovyov <mcpain> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | aleixpol, jgrulich, nate, pbrown, zerg |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Oleg Solovyov
2023-10-23 08:05:33 UTC
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) |