mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 00:05:58 +01:00
hyprctl: ignore non-lock files for instances
This commit is contained in:
parent
5824b0f305
commit
9103af317e
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ std::vector<SInstanceData> instances() {
|
|||
std::vector<SInstanceData> result;
|
||||
|
||||
for (const auto& el : std::filesystem::directory_iterator("/tmp/hypr")) {
|
||||
if (el.is_directory())
|
||||
if (el.is_directory() || !el.path().string().ends_with(".lock"))
|
||||
continue;
|
||||
|
||||
// read lock
|
||||
|
|
Loading…
Reference in a new issue