LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Locating Gnome 2 directories in C (https://www.linuxquestions.org/questions/programming-9/locating-gnome-2-directories-in-c-268455/)

TarrasQ 12-20-2004 01:01 PM

Locating Gnome 2 directories in C
 
Hello,

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...


All times are GMT -5. The time now is 06:34 PM.