Merge pull request #39 from JosefUtbult/multiple_window_manager_fix

Fix assertion fail when using a non i3 window manager
This commit is contained in:
Sergey Naumov
2022-11-24 17:07:36 +03:00
committed by GitHub

View File

@@ -325,7 +325,7 @@ std::string get_socketpath() {
pclose(in);
str = str_buf;
}
if (str.back() == '\n') {
if (str.length() > 0 && str.back() == '\n') {
str.pop_back();
}
return str;