diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 09:32:27 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-07-10 09:32:27 -0400 |
commit | 0b673bb9a09d6b974f297c9304be2e839492c906 (patch) | |
tree | 3dae48a0418dd31b257881f34cce6869551cdaca | |
parent | cd0d04ea9a03b3c99c30b4b1c77e7cef00efd3b4 (diff) | |
download | metacity-0b673bb9a09d6b974f297c9304be2e839492c906.tar.gz |
save in the cache directory
-rw-r--r-- | src/core/matching.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/matching.c b/src/core/matching.c index 883be522..c72a0006 100644 --- a/src/core/matching.c +++ b/src/core/matching.c @@ -40,7 +40,19 @@ gchar *matching_keyfile_filename = NULL; static void matching_ensure_filename (void) { - matching_keyfile_filename = g_strdup ("/tmp/metacity-matching-2.conf"); + if (matching_keyfile_filename) + return; + + matching_keyfile_filename = g_build_filename (g_get_user_cache_dir (), + "metacity", + NULL); + g_mkdir_with_parents (matching_keyfile_filename, 0700); + g_free (matching_keyfile_filename); + + matching_keyfile_filename = g_build_filename (g_get_user_cache_dir (), + "metacity", + "matching.conf", + NULL); } static void |