Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-20-2004, 01:01 PM   #1
LQ Newbie
Registered: Mar 2004
Location: Oulu, Finland
Distribution: F15
Posts: 23

Rep: Reputation: 0
Locating Gnome 2 directories in C


I'm writing a program that needs to know where Gnome 2 application menus are located. To be more specific - the .desktop files. For example in FC2 they are in /etc/applications/ and /etc/X11/applnk/<subdir>.

The problem is I need a way to locate them inside my program at runtime in a generic way, because distros (and Solaris...) have their own views of where the dirs should be.

I'm coding with C/GLib/GTK

Would someone possibly have something that would help? I've looked through tons of API specs, tutorials and searched the web already...


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
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 01:23 PM
Locating tape drive Rax Slackware 9 06-29-2005 10:54 AM
Locating Kernel arimus25 Linux - Software 3 02-24-2004 06:22 PM
locating software SkimMilk Linux - Newbie 2 10-26-2003 11:22 AM
locating lilo seeker1 Linux - Newbie 12 01-11-2003 02:22 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:23 PM.

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