On Tue, Sep 13, 2011 at 01:43:06PM +0430, Mohsen Pahlevanzadeh wrote: > You know that if install a package, may be it creates a directory in > your home directory which begin dot. Such as .purple (pidgin appl) > Recently i see many of appl such as evolution don't use this method and > use .local .gnome2 .gnome or so on. > I don't know different between them and don't know any idea on them, dot > or gnoem configuration. > > I'm starting to write a appl with GTK and confused to decide dot method > or gnome structure. if gnome structure is better, can you give me clue > about its APIs?
To follow XDG use g_get_user_config_dir(), g_get_user_data_dir() and similar functions to obtain the base directory names and use app-named subdirectories of that. The XDG scheme works for classic desktop applications. It makes much less sense though if your program has for instance files that are config, data and scripts at the same time and they are expected to be created and edited manually... (imagine bash for an extreme example). Yeti _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list