From ec26b753a253bf92ad7451b685b95cbddcb75403 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:28:07 +0200 Subject: descriptions: fix bad json output (#11350) --------- Co-authored-by: Mihai Fufezan --- src/debug/HyprCtl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/debug/HyprCtl.cpp') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index cec41087..3b83d323 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1697,7 +1697,7 @@ static std::string getIsLocked(eHyprCtlOutputFormat format, std::string request) } static std::string getDescriptions(eHyprCtlOutputFormat format, std::string request) { - std::string json = "{"; + std::string json = "["; const auto& DESCS = g_pConfigManager->getAllDescriptions(); for (const auto& d : DESCS) { @@ -1707,7 +1707,7 @@ static std::string getDescriptions(eHyprCtlOutputFormat format, std::string requ json.pop_back(); json.pop_back(); - json += "}\n"; + json += "]\n"; return json; } -- cgit v1.2.3