LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2009, 12:45 AM   #1
seandalton0
LQ Newbie
 
Registered: Jun 2009
Location: PA/NJ
Distribution: openSuse, Fedora, CentOS
Posts: 4

Rep: Reputation: 0
C, GTK, and 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.
 
Old 06-03-2009, 03:41 PM   #2
seandalton0
LQ Newbie
 
Registered: Jun 2009
Location: PA/NJ
Distribution: openSuse, Fedora, CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
I guess to update my own post, I've been searching around code for a while, mainly the "gnome-main-menu" or "SLAB" code, and I've found a few locations that have proved very useful.

http://git.gnome.org./cgit/gnome-mai...b-gnome-util.h

and

http://git.gnome.org./cgit/gnome-des...desktop-item.h

I've been able to import .desktop files into a GnomeDesktopItem, but I've hit a brick wall right now and have to wait before I can see if I can extrapolate any relevant information. As I figure out more I'll keep this thread updated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Conky-like Desktop Info Application With Html Support (gtk-desktop-info) [Ubunt LXer Syndicated Linux News 0 05-01-2009 11:50 PM
gnome desktop icons appear as desktop text files nick623 Linux - Software 2 12-15-2006 02:05 PM
KDE Gnome Desktop Menu Edits (right click on desktop) jdier Linux - Software 11 08-03-2006 05:05 AM
Loss of desktop functionality after setting new desktop from firefox in fc2/gnome. dr_zayus69 Linux - Software 3 03-09-2005 09:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration