After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 612694 - desktop entry does not validate
desktop entry does not validate
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
2.29.x
Other Linux
: Normal normal
: 3.0
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-12 12:47 UTC by Götz Waschk
Modified: 2011-02-25 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Götz Waschk 2010-03-12 12:47:37 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
Comment 1 Sense Hofstede 2010-04-01 15:17:27 UTC
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."
Comment 2 Sense Hofstede 2010-04-09 12:34:17 UTC
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?
Comment 3 Cosimo Cecchi 2010-04-09 12:37:33 UTC
(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.
Comment 4 Dominique Leuenberger 2010-08-15 17:38:43 UTC
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.
Comment 5 Hendrik Maryns 2010-08-16 08:45:55 UTC
Also this openSUSE bug: https://bugzilla.novell.com/show_bug.cgi?id=631272.
They are waiting for us.
Comment 6 Cosimo Cecchi 2011-02-25 15:39:05 UTC
This is fixed in master now.