[gnome-color-manager] trivial: include the timespec in the working path



commit 7de2eaf4d1e376a3456f745853b7403ab1f77b82
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 23 20:14:09 2010 +0000

    trivial: include the timespec in the working path

 src/gcm-calibrate.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-calibrate.c b/src/gcm-calibrate.c
index aee5b72..c707d16 100644
--- a/src/gcm-calibrate.c
+++ b/src/gcm-calibrate.c
@@ -385,14 +385,20 @@ static gboolean
 gcm_calibrate_set_working_path (GcmCalibrate *calibrate, GError **error)
 {
 	gboolean ret = FALSE;
+	gchar *timespec = NULL;
+	gchar *folder = NULL;
 	GcmCalibratePrivate *priv = calibrate->priv;
 
 	/* remove old value */
 	g_free (priv->working_path);
 
-	/* use the basename */
-	priv->working_path = g_build_filename (g_get_user_config_dir (), "gnome-color-manager", "calibration", priv->basename, NULL);
+	/* use the basename and the timespec */
+	timespec = gcm_calibrate_get_time ();
+	folder = g_strjoin (" - ", priv->basename, timespec, NULL);
+	priv->working_path = g_build_filename (g_get_user_config_dir (), "gnome-color-manager", "calibration", folder, NULL);
 	ret = gcm_utils_mkdir_with_parents (priv->working_path, error);
+	g_free (timespec);
+	g_free (folder);
 	return ret;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]