diff options
| author | Sergei Trofimovich <slyich@gmail.com> | 2024-02-24 23:35:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-24 23:35:36 +0000 |
| commit | f534ac3fc462d8af923d2a1ab8ef58f62639a1ea (patch) | |
| tree | 464f310a17a7212d900ce60c5ee1084b6e4afc45 /hyprctl/main.cpp | |
| parent | 9103af317ec7c6d46d4be561eee855d5337c9e8c (diff) | |
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?)
$
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
