[gnome-color-manager] Use XDG directory to store data (~/.gnome2 is bad)
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Use XDG directory to store data (~/.gnome2 is bad)
- Date: Sun, 1 Nov 2009 12:48:05 +0000 (UTC)
commit b61b011a4a760829a63f18c7539a60c013392ca0
Author: Baptiste Mille-Mathias <baptiste millemathias gmail com>
Date: Sun Nov 1 10:19:45 2009 +0100
Use XDG directory to store data (~/.gnome2 is bad)
src/gcm-clut.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-clut.c b/src/gcm-clut.c
index 2bc646b..fd3de3d 100644
--- a/src/gcm-clut.c
+++ b/src/gcm-clut.c
@@ -162,11 +162,9 @@ static gchar *
gcm_clut_get_default_config_location (void)
{
gchar *filename;
- const gchar *home;
/* create default path */
- home = g_get_home_dir ();
- filename = g_build_filename (home, ".gnome2", "gnome-color-manager", "config.dat", NULL);
+ filename = g_build_filename (g_get_user_config_dir (), "gnome-color-manager", "config.dat", NULL);
return filename;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]