diff options
author | Vaxry <[email protected]> | 2024-02-24 23:35:18 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-02-24 23:35:18 +0000 |
commit | 9103af317ec7c6d46d4be561eee855d5337c9e8c (patch) | |
tree | 4ee21369409dbe7cef4cadbd4ba0b6cb9c8e020b /hyprctl | |
parent | 5824b0f305e95132184241832653d528b12c75e2 (diff) | |
download | Hyprland-9103af317ec7c6d46d4be561eee855d5337c9e8c.tar.gz Hyprland-9103af317ec7c6d46d4be561eee855d5337c9e8c.zip |
hyprctl: ignore non-lock files for instances
Diffstat (limited to 'hyprctl')
-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 ca08e436..a031eee3 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -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 |