diff options
author | Luis de Bethencourt <luis@debethencourt.com> | 2011-05-10 17:50:39 +0200 |
---|---|---|
committer | Luis de Bethencourt <luis@debethencourt.com> | 2011-05-10 17:50:39 +0200 |
commit | 390eafcb5207732869dd5477eaab4bb4704ff8cf (patch) | |
tree | e094f7bbf428422d29bf24d7e642153c6dcceac9 | |
parent | 71f3a18024666316e6041fed2bfc5ab168256f81 (diff) |
general: s/config/history file
-rw-r--r-- | src/gst_engine.c | 6 | ||||
-rw-r--r-- | src/snappy.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gst_engine.c b/src/gst_engine.c index fb0b2a1..ef08e98 100644 --- a/src/gst_engine.c +++ b/src/gst_engine.c @@ -74,7 +74,7 @@ add_uri_unfinished_playback (GstEngine * engine, gchar * uri, gint64 position) // config file path config_dir = g_get_user_config_dir (); - path = g_strdup_printf ("%s/snappy/config", config_dir); + path = g_strdup_printf ("%s/snappy/history", config_dir); g_key_file_load_from_file (keyfile, path, flags, NULL); // if file doesn't exist it uses the newly created one @@ -167,7 +167,7 @@ remove_uri_unfinished_playback (GstEngine * engine, gchar * uri) // config file path config_dir = g_get_user_config_dir (); - path = g_strdup_printf ("%s/snappy/config", config_dir); + path = g_strdup_printf ("%s/snappy/history", config_dir); // remove key if gkeyfile exists if (g_key_file_load_from_file (keyfile, path, flags, NULL)) @@ -202,7 +202,7 @@ uri_is_unfinished_playback (GstEngine * engine, gchar * uri) // config file path config_dir = g_get_user_config_dir (); - path = g_strdup_printf ("%s/snappy/config", config_dir); + path = g_strdup_printf ("%s/snappy/history", config_dir); if (g_key_file_load_from_file (keyfile, path, flags, NULL)) if (g_key_file_has_group (keyfile, "unfinished")) diff --git a/src/snappy.c b/src/snappy.c index 8498b6a..33e0573 100644 --- a/src/snappy.c +++ b/src/snappy.c @@ -56,9 +56,9 @@ config_load () config_dir = g_get_user_config_dir (); path = g_strdup_printf ("%s/snappy/", config_dir); - g_print ("%s\n", path); + if (!g_file_test (path, G_FILE_TEST_IS_DIR)) { - g_print ("doesn't exist\n"); + g_print ("%s doesn't exist\n", path); g_mkdir_with_parents (path, 0700); } |