Fix assertion fail when using a non i3 window manager
This commit is contained in:
@@ -325,7 +325,7 @@ std::string get_socketpath() {
|
|||||||
pclose(in);
|
pclose(in);
|
||||||
str = str_buf;
|
str = str_buf;
|
||||||
}
|
}
|
||||||
if (str.back() == '\n') {
|
if (str.length() > 0 && str.back() == '\n') {
|
||||||
str.pop_back();
|
str.pop_back();
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
|
|||||||
Reference in New Issue
Block a user