From f534ac3fc462d8af923d2a1ab8ef58f62639a1ea Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 24 Feb 2024 23:35:36 +0000 Subject: [PATCH] hyprctl: add missing newline in error case of missing `HYPRLAND_INSTANCE_SIGNATURE` (#4832) Before the change running a `hyprctl` in incomplete `Hyprland` environment merged error message and prompt for me as: $ hyprctl activewindow HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?)$ (note trailing `$` prompt). After the change the newline is present as expected: $ hyprctl activewindow HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?) $ --- hyprctl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index a031eee3..02da5f43 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -367,7 +367,7 @@ int main(int argc, char** argv) { const auto ISIG = getenv("HYPRLAND_INSTANCE_SIGNATURE"); if (!ISIG) { - std::cout << "HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?)"; + std::cout << "HYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?)\n"; return 1; }