Hi,

In general GTK+ applications use GNU build system, user can configure and 
install it on it's specified directory. Usually there is a a file named 
"config.h" and can be override by configure script parameters. The "config.h" 
will be generated upon configure based on "config.h.in", then use the 
predefined macros there to locate your path.

          - Ardhan


--- [email protected] wrote:

From: Todor Todorov <[email protected]>
To: Gtk App Devel List <[email protected]>
Subject: Default dir for application data
Date: Thu, 08 Oct 2009 18:06:35 -0400

Hello list

I skimmed the docs for the current stable release on gtk.org, but was 
not able to find anything relating to my problem. If for example my 
application is installed globally with DATA_DIR set to /usr/share, is 
there some function in GLib or GTK which would give me the global app 
data dir (i.e. /usr/share/MyApp) or the user owned app data dir (i.e. 
$HOME/.config/MyApp) - either as an GFile or path (gchar*)?

Thanks for your help!

Regards,
Todor
_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com
_______________________________________________
gtk-app-devel-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to