forked from Mirrors/flatpak-builder
Move caches to ~/.cache
The system-cache (summaries and temporary repos for downloads) are moved from ~/.local/share/flatpak/system-cache to ~/.cache/flatpak/system-cache (or wherever XDG_CACHE_HOME is) because this is the proper location for caches. Fixes https://github.com/flatpak/flatpak/issues/767tingping/wmclass
parent
2b5af6a036
commit
1a49029f9d
|
@ -592,10 +592,9 @@ flatpak_get_user_base_dir_location (void)
|
|||
static GFile *
|
||||
flatpak_get_user_cache_dir_location (void)
|
||||
{
|
||||
g_autoptr(GFile) base_dir = NULL;
|
||||
g_autoptr(GFile) base_dir = g_file_new_for_path (g_get_user_cache_dir ());
|
||||
|
||||
base_dir = flatpak_get_user_base_dir_location ();
|
||||
return g_file_get_child (base_dir, "system-cache");
|
||||
return g_file_resolve_relative_path (base_dir, "flatpak/system-cache");
|
||||
}
|
||||
|
||||
static GFile *
|
||||
|
|
Loading…
Reference in New Issue