From e8f125c57a65b83d14dcd3793681f15951d48545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 21 Dec 2023 23:23:36 +0100 Subject: [PATCH] extensions-tool: Include enabled info in details Both an extension's ACTIVE state and whether it is enabled can be interesting, so include both when displaying extension details. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7004 Part-of: --- subprojects/extensions-tool/src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/extensions-tool/src/main.c b/subprojects/extensions-tool/src/main.c index 56ae47509..baeee9d0c 100644 --- a/subprojects/extensions-tool/src/main.c +++ b/subprojects/extensions-tool/src/main.c @@ -231,7 +231,7 @@ print_extension_info (GVariantDict *info, { const char *uuid, *name, *desc, *path, *url, *author, *version_name; double state, version; - gboolean has_version, has_version_name; + gboolean has_version, has_version_name, enabled; g_variant_dict_lookup (info, "uuid", "&s", &uuid); g_print ("%s\n", uuid); @@ -264,6 +264,9 @@ print_extension_info (GVariantDict *info, else if (has_version) g_print (" %s: %.0f\n", _("Version"), version); + g_variant_dict_lookup (info, "enabled", "b", &enabled); + g_print (" %s: %s\n", _("Enabled"), enabled ? _("Yes") : _("No")); + g_variant_dict_lookup (info, "state", "d", &state); g_print (" %s: %s\n", _("State"), extension_state_to_string (state)); }