hyprctl: ignore non-lock files for instances

This commit is contained in:
Vaxry 2024-02-24 23:35:18 +00:00
parent 5824b0f305
commit 9103af317e

View file

@ -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