diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/screenshot-backend-shell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/screenshot-backend-shell.c b/src/screenshot-backend-shell.c index 84c5ead..9c686d1 100644 --- a/src/screenshot-backend-shell.c +++ b/src/screenshot-backend-shell.c @@ -42,13 +42,14 @@ screenshot_backend_shell_get_pixbuf (ScreenshotBackend *backend, GdkRectangle *rectangle) { g_autoptr(GError) error = NULL; - g_autofree gchar *path = NULL, *filename = NULL, *tmpname = NULL; + g_autofree gchar *tmp_dirname = NULL, *path = NULL, *filename = NULL, *tmpname = NULL; GdkPixbuf *screenshot = NULL; const gchar *method_name; GVariant *method_params; GDBusConnection *connection; - path = g_build_filename (g_get_user_cache_dir (), "gnome-screenshot", NULL); + tmp_dirname = g_strdup_printf ("gnome-screenshot-%s", g_get_user_name ()); + path = g_build_filename (g_get_tmp_dir (), tmp_dirname, NULL); g_mkdir_with_parents (path, 0700); tmpname = g_strdup_printf ("scr-%d.png", g_random_int ()); |