[recipes] Fix one more hardcoded "recipes" directory
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix one more hardcoded "recipes" directory
- Date: Sat, 18 Feb 2017 02:46:17 +0000 (UTC)
commit 528c7b174f7115162f9d02892de3dbfabaf3ef8d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 17 21:15:37 2017 -0500
Fix one more hardcoded "recipes" directory
Use get_user_data_dir() instead of hardcoding "recipes"
in the image viewer.
src/gr-image-viewer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-image-viewer.c b/src/gr-image-viewer.c
index af6aef3..ded702e 100644
--- a/src/gr-image-viewer.c
+++ b/src/gr-image-viewer.c
@@ -338,13 +338,13 @@ image_received (GtkClipboard *clipboard,
if (pixbuf) {
GrRotatedImage ri;
- g_autofree char *dir = NULL;
+ const char *dir;
g_autofree char *path = NULL;
int fd;
g_autoptr(GOutputStream) stream = NULL;
g_autoptr(GError) error = NULL;
- dir = g_build_filename (g_get_user_data_dir (), "recipes", NULL);
+ dir = get_user_data_dir ();
g_mkdir_with_parents (dir, S_IRWXU | S_IRWXG | S_IRWXO);
path = g_build_filename (dir, "clipboardXXXXXX.png", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]