mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
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
This commit is contained in:
@@ -542,8 +542,10 @@ clapper_app_utils_make_element (const gchar *string)
|
|||||||
static inline GFile *
|
static inline GFile *
|
||||||
_get_tmp_dir (const gchar *subdir)
|
_get_tmp_dir (const gchar *subdir)
|
||||||
{
|
{
|
||||||
|
/* XXX: 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 */
|
||||||
return g_file_new_build_filename (
|
return g_file_new_build_filename (
|
||||||
g_get_tmp_dir (), "." CLAPPER_APP_ID, subdir, NULL);
|
g_get_user_data_dir (), CLAPPER_APP_ID, "tmp", subdir, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_GRAPHVIZ
|
#ifdef HAVE_GRAPHVIZ
|
||||||
|
Reference in New Issue
Block a user