From 9103af317ec7c6d46d4be561eee855d5337c9e8c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 24 Feb 2024 23:35:18 +0000 Subject: hyprctl: ignore non-lock files for instances --- hyprctl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hyprctl/main.cpp') 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 instances() { std::vector 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 -- cgit v1.2.3