Summary: | Desktop file not usable outside KDE due to empty incompatible field: Path[$e]= | ||
---|---|---|---|
Product: | [Applications] kmenuedit | Reporter: | Ben Armstrong <synrg> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | adaptee, cfeck, debian, dev, nyanpasu64, pasthelod |
Priority: | NOR | ||
Version: | 0.8 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ben Armstrong
2013-06-14 16:35:41 UTC
We tried several years ago to make this KDE feature part of the standard, but there was no reply. http://lists.freedesktop.org/archives/xdg/2009-November/011121.html I do understand "[$e]" could be useful for some purpose. If that were the case, you might consider keeping it for kmenuedit's primary users on KDE itself, even if that made the files unusable for other users on other desktops. However, since it doesn't seem to serve any useful purpose in this case, I don't think there is any downside to fixing this bug. Drop the "Path[$e]=" line entirely, or at least when it is empty, and it looks like all gain and no loss. Thank you Ben for reporting this issue. (In reply to Ben Armstrong from comment #2) > Drop the "Path[$e]=" line [..] at least when it is empty I fully agree. (In reply to Ben Armstrong from comment #2) > you might consider keeping it for kmenuedit's primary users on KDE itself Well, an empty "Path[$e]=" line isn't necessary even for KDE/Plasma users. ----- For the record, I ran into this issue like this: * I created a new Desktop Entry using kmenuedit (a simple web browser wrapper) * I set the default web browser using systemsettings5 > Applications > Default Applications > Web Browser > "in the following browser" * I recognized that the new default was not applied for all applications. This is my debugging summary: > $ xdg-mime query default x-scheme-handler/http > my-web-browser-wrapper.desktop (This is correct.) > $ gvfs-mime --query x-scheme-handler/http > Default application for 'x-scheme-handler/http': firefox-esr.desktop > Registered applications: > firefox-esr.desktop > chromium.desktop > Recommended applications: > firefox-esr.desktop > chromium.desktop As you can see, "my-web-browser-wrapper.desktop" is not there. > $ gvfs-mime --set x-scheme-handler/http my-web-browser-wrapper.desktop > Failed to load info for handler 'my-web-browser-wrapper.desktop' The solution, as already mentioned by Ben, is to simply remove the following line (in `$HOME/.local/share/applications/my-web-browser-wrapper.desktop`) > Path[$e]= Please fix this issue I encountered this issue too. The empty Path[$e] field breaks multiple menu editors: - When I try to open a single .desktop file in Xfce's exo-desktop-item-edit, it doesn't open a window and complains in the terminal: "exo-desktop-item-edit: Failed to parse contents of "file:///home/nyanpasu64/.local/share/applications/Dn-FamiTracker.desktop": Invalid key name: Path[$e]" - When I try to open MenuLibre (which lists all .desktop files), it doesn't show KDE-edited apps, and instead prints "Invalid desktop files detected! Please see details.". Clicking Details lists the .desktop file with the message "Unable to load desktop file due to the following error: g-key-file-error-quark: Invalid key name: Path[$e] (1)". |