View Full Version : Any (Gtk) API to handle .desktop files?

February 27th, 2011, 08:48 PM
Is there any (additional or integrated) Gtk API to query the system for the corresponding desktop entry (.desktop) for a given mime type?

Or do I have to do it by hand? That is, finding all system .desktop files, parsing them, caching, ordering, creating the code which decides which .desktop file is best for given mime type etc etc as described on freedesktop.org.