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?)
    $
This commit is contained in:
Sergei Trofimovich 2024-02-24 23:35:36 +00:00 committed by GitHub
parent 9103af317e
commit f534ac3fc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,7 +367,7 @@ int main(int argc, char** argv) {
const auto ISIG = getenv("HYPRLAND_INSTANCE_SIGNATURE"); const auto ISIG = getenv("HYPRLAND_INSTANCE_SIGNATURE");
if (!ISIG) { 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; return 1;
} }