forked from Mirrors/flatpak-builder
Only do locale subsetting in per-user installs
If xa.languages is not explicitly set, only use the current locale if we are installing something per-user. For system-wide installs, default to installing all locales.tingping/wmclass
parent
3874a29d74
commit
0d633babac
|
@ -8860,7 +8860,12 @@ flatpak_dir_get_locale_subpaths (FlatpakDir *self)
|
|||
subpaths = g_key_file_get_string_list (config, "core", "xa.languages", NULL, NULL);
|
||||
|
||||
if (!subpaths)
|
||||
subpaths = flatpak_get_current_locale_subpaths ();
|
||||
{
|
||||
if (flatpak_dir_is_user (self))
|
||||
subpaths = flatpak_get_current_locale_subpaths ();
|
||||
else
|
||||
subpaths = g_new0 (char *, 1);
|
||||
}
|
||||
|
||||
return subpaths;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue