Skip to content

Commit 63513f7

Browse files
committed
clapper-app: Use user data dir for storing pipeline exports
System tmp directory does not work within containers such as Flatpak for our usage with file launcher, so make our own temp in app data dir
1 parent 4c2f5f3 commit 63513f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bin/clapper-app/clapper-app-utils.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,10 @@ clapper_app_utils_make_element (const gchar *string)
542542
static inline GFile *
543543
_get_tmp_dir (const gchar *subdir)
544544
{
545+
/* XXX: System tmp directory does not work within containers such as Flatpak
546+
* for our usage with file launcher, so make our own temp in app data dir */
545547
return g_file_new_build_filename (
546-
g_get_tmp_dir (), "." CLAPPER_APP_ID, subdir, NULL);
548+
g_get_user_data_dir (), CLAPPER_APP_ID, "tmp", subdir, NULL);
547549
}
548550

549551
#ifdef HAVE_GRAPHVIZ

0 commit comments

Comments
 (0)