Summary: | xdg-open prefers vscode over dolphin | ||
---|---|---|---|
Product: | [Plasma] xdg-desktop-portal-kde | Reporter: | Thomas-Luke Duffin <thomaslukeduffin> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | normal | CC: | 4wy78uwh, aleixpol, jgrulich, nate |
Priority: | NOR | ||
Version: | 5.27.7 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
URL: | https://github.com/microsoft/vscode/issues/114425 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thomas-Luke Duffin
2023-09-26 21:42:09 UTC
What does `xdg-mime query default inode/directory` run in a terminal window print out? Can you attach your fill /usr/share/applications/mimeinfo.cache file? I strongly suspect they're *prepending* their app ID to the inode/directory= key in that file, rather than *appending* to it, as they should. I'd like to note that this issue disappeared for me after a reboot. (In reply to Nate Graham from comment #1) > What does `xdg-mime query default inode/directory` run in a terminal window > print out? > > Can you attach your fill /usr/share/applications/mimeinfo.cache file? > > I strongly suspect they're *prepending* their app ID to the inode/directory= > key in that file, rather than *appending* to it, as they should. https://gist.github.com/TDuffinNTU/1685cfd2727b88e3c5ccc9bfdfeb65ee That is exactly what happened when I installed VSCode, as shown from the mimeinfo.cache I've linked above (line 262). The issue resolved itself once I moved the "code.desktop" entry to the end of the list. However, if I revert the change (Which causes the issue to start again) running `xdg-mime query default inode/directory` *still* returns org.Kde.Dolphin :/ There's a lot more discussion that might be helpful as part of the github issue that also might help give some extra context If you check the link I provided in "Additional Details" in the original ticket, the VSCode contributors seem to be unsure what the best practice is. It might be worth replying there to add your input as they were looking for people with domain experience with this. Thanks, I'll follow up there. *** Bug 438006 has been marked as a duplicate of this bug. *** |