[recipes] Remove one more hardcoded "recipes" location
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Remove one more hardcoded "recipes" location
- Date: Sat, 18 Feb 2017 02:46:27 +0000 (UTC)
commit dd783955b3bc95de83ce82d8342b51de07b522e2
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 17 21:36:19 2017 -0500
Remove one more hardcoded "recipes" location
We use a cache dir below XDG_CACHE_DIR to store rotated
images. Make it use the package name as well.
src/gr-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-utils.c b/src/gr-utils.c
index ef65bd4..0d96c9d 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -498,7 +498,7 @@ ensure_rotated_image (const char *path,
basename = g_path_get_basename (path);
subdir = g_strdup_printf ("images%d", angle);
- dir = g_build_filename (g_get_user_cache_dir (), "recipes", subdir, NULL);
+ dir = g_build_filename (g_get_user_cache_dir (), PACKAGE_NAME, subdir, NULL);
g_mkdir_with_parents (dir, S_IRWXU | S_IRWXG | S_IRWXO);
rotated = g_build_filename (dir, basename, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]