aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-24 23:35:18 +0000
committerVaxry <[email protected]>2024-02-24 23:35:18 +0000
commit9103af317ec7c6d46d4be561eee855d5337c9e8c (patch)
tree4ee21369409dbe7cef4cadbd4ba0b6cb9c8e020b /hyprctl
parent5824b0f305e95132184241832653d528b12c75e2 (diff)
downloadHyprland-9103af317ec7c6d46d4be561eee855d5337c9e8c.tar.gz
Hyprland-9103af317ec7c6d46d4be561eee855d5337c9e8c.zip
hyprctl: ignore non-lock files for instances
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp2
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