From e63b03870153b3d1d8d0b71ebae524ce491fb5dc Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sun, 25 Jan 2026 23:20:31 -0500 Subject: [PATCH] About: Pretty-print (wrap) JSON settings dump Use the three-argument form of `JSON.stringify()` to dump the settings object line-wrapped and with 1-space indents, for readability when pasted into bug reports (or anywhere else). --- src/preferences/aboutPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/aboutPage.ts b/src/preferences/aboutPage.ts index 91e73fe..3261428 100644 --- a/src/preferences/aboutPage.ts +++ b/src/preferences/aboutPage.ts @@ -110,7 +110,7 @@ export class AboutPage extends Adw.PreferencesPage { obj["gnome-version"] = PACKAGE_VERSION; obj["user-locale"] = (getLocales() ?? [])[0] ?? "Unknown"; settingsBtnContent.icon_name = "checkbox"; - settingsButton.get_clipboard().set(JSON.stringify(obj)); + settingsButton.get_clipboard().set(JSON.stringify(obj, null, 1)); let toast = new Adw.Toast({ title: _g("Copied settings JSON to clipboard.")