Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Need help with C, GTK, Gnome Desktop
For the sake of conversation let's say I'm building a gnome application menu, and now I'm at the point I need to populate the menus with the actual installed applications. In the past I've simply read the .desktop files in /usr/share/applications/ and parsed out the required information, which became a very CPU intensive process, I was also using Python.
Now I'm trying to do the same thing again, accept in C. I've found that there's a gnomedesktop library for Python that allows you to interface with the Gnome Desktop and from what I've heard, derive these .desktop entries more efficiently than my previous attempt. So what I'm looking for now is the same kind of library for C. I've been looking through the files at 'http://git.gnome.org./cgit/gnome-desktop/tree/libgnome-desktop'
, but haven't found much that would assist my goal.
So if someone knows how to do this, or some other means to obtain this information rather than reading the directory contents and parsing out whatever information to build the entries step by step, I would be very grateful.