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
Matthias Clasen 2017-07-08 07:45:31 -04:00
parent 3874a29d74
commit 0d633babac
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}