GNOME Bugzilla – Bug 612694
desktop entry does not validate
Last modified: 2011-02-25 15:39:05 UTC
The new desktop-file-utils 0.16 is more strict regarding desktop files. These are the errors for nautilus 2.29.92: /usr/share/applications/nautilus-computer.desktop: error: (will be fatal in the future): value "GNOME;GTK;Core;" for key "Categories" in group "Desktop Entry" does not contain a registered main category /usr/share/applications/nautilus-folder-handler.desktop: warning: value "x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;" for key "MimeType" in group "Desktop Entry" contains value "x-directory/gnome-default-handler" which is a MIME type that should probably not be used: "x-directory" is an old media type that should be replaced with a modern equivalent /usr/share/applications/nautilus-folder-handler.desktop: warning: value "x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;" for key "MimeType" in group "Desktop Entry" contains value "x-directory/normal" which is a MIME type that should probably not be used: "x-directory" is an old media type that should be replaced with a modern equivalent /usr/share/applications/nautilus-home.desktop: error: (will be fatal in the future): value "GNOME;GTK;Core;" for key "Categories" in group "Desktop Entry" does not contain a registered main category /usr/share/applications/nautilus-search.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated /usr/share/applications/nautilus-search.desktop: error: (will be fatal in the future): value "Core;" for key "Categories" in group "Desktop Entry" does not contain a registered main category /usr/share/applications/network-scheme.desktop: error: (will be fatal in the future): value "Core;" for key "Categories" in group "Desktop Entry" does not contain a registered main category
This issue was also reported by Laurent Bonnaud on Launchpad in Ubuntu at <https://launchpad.net/bugs/552388>. I can also confirm this issue myself, although I get a slightly different output; I ran 'update-desktop-database', an easy way for checking this issue. "Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/gnome-default-handler" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent) Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/normal" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent) The databases in [/usr/share/gnome/applications, /usr/local/share/applications, /usr/share/applications] could not be updated."
In Ubuntu it was decided to update 'desktop-file-utils' to not give warnings when the MIME-type x-directory is used because Nautilus is still using it in the code and it is too late in the Lucid cycle to see what happens if we change that code. Maybe something to look at for GNOME 2.31?
(In reply to comment #2) > Maybe something to look at for GNOME 2.31? Yeah, definitely. There are probably already good replacements for some of the values which give warnings.
Can this be addressed during the 2.32 release? This is almost to be completed, and it would be a shame to let this slip through.
Also this openSUSE bug: https://bugzilla.novell.com/show_bug.cgi?id=631272. They are waiting for us.
This is fixed in master now.