diff options
author | Corey Berla <corey@berla.me> | 2022-07-18 14:54:15 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-07-20 15:43:48 +0000 |
commit | e987a7d35fa15cece0b0127485352718d42b2bd9 (patch) | |
tree | 923e439f36adf9473daa6cd3b4128f6a18039800 | |
parent | 5d5b67319a1a36acfcd2a0558303bba6a2bfc662 (diff) | |
download | nautilus-e987a7d35fa15cece0b0127485352718d42b2bd9.tar.gz |
window: Add debug-info property to AdwAboutPage
Put a list of currently installed extensions in debug-info.
This shows up under Troubleshooting in the about page.
-rw-r--r-- | src/nautilus-window.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index d409d31ef..9c8b8b78e 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -60,6 +60,7 @@ #include "nautilus-location-entry.h" #include "nautilus-metadata.h" #include "nautilus-mime-actions.h" +#include "nautilus-module.h" #include "nautilus-notebook.h" #include "nautilus-pathbar.h" #include "nautilus-profile.h" @@ -2281,6 +2282,9 @@ nautilus_window_new (void) void nautilus_window_show_about_dialog (NautilusWindow *window) { + g_autofree gchar *module_names = nautilus_module_get_installed_module_names (); + g_autofree gchar *debug_info = NULL; + const gchar *designers[] = { "The GNOME Project", @@ -2298,6 +2302,18 @@ nautilus_window_show_about_dialog (NautilusWindow *window) NULL }; + if (module_names == NULL) + { + debug_info = g_strdup (_("No plugins currently installed.")); + } + else + { + debug_info = g_strconcat (_("Currently installed plugins:"), "\n\n", + module_names, "\n\n", + _("For bug testing only, the following command can be used:"), "\n" + "NAUTILUS_DISABLE_PLUGINS=TRUE nautilus", NULL); + } + adw_show_about_window (window ? GTK_WINDOW (window) : NULL, "application-name", _("Files"), "application-icon", APPLICATION_ID, @@ -2305,6 +2321,7 @@ nautilus_window_show_about_dialog (NautilusWindow *window) "version", VERSION, "website", "https://wiki.gnome.org/action/show/Apps/Files", "issue-url", "https://gitlab.gnome.org/GNOME/nautilus/-/issues/new", + "debug-info", debug_info, "copyright", "© 1999 The Files Authors", "license-type", GTK_LICENSE_GPL_3_0, "designers", designers, |