From f4ffa779222036611e68800141118bc7c9d7daa2 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 10 Oct 2023 10:56:51 -0300 Subject: [PATCH] WIP --- common/flatpak-dir.c | 4 ++++ tests/testlibrary.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index 2f42be74a9..b1d4c206b0 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -16411,6 +16411,10 @@ get_user_locales (FlatpakDir *self) get_locale_langs_from_accounts_dbus_for_user (accounts_proxy, langs, getuid ()); g_ptr_array_add (langs, NULL); + g_message ("User locales has %u locales", langs->len); + for (size_t i = 0; i < langs->len; i++) + g_message ("%s", g_ptr_array_index (langs, i)); + g_once_init_leave (&cached, langs); } diff --git a/tests/testlibrary.c b/tests/testlibrary.c index 3b3530dd87..510f9c7572 100644 --- a/tests/testlibrary.c +++ b/tests/testlibrary.c @@ -298,6 +298,10 @@ test_languages_config (void) value = flatpak_installation_get_default_languages (inst, &error); g_assert_no_error (error); + + for (size_t i = 0; value && value[i]; i++) + g_message ("language: %s", value[i]); + g_assert_cmpstr (value[0], ==, "en"); g_assert_null (value[1]);