mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 14:45:59 +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;
|
std::vector<SInstanceData> result;
|
||||||
|
|
||||||
for (const auto& el : std::filesystem::directory_iterator("/tmp/hypr")) {
|
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;
|
continue;
|
||||||
|
|
||||||
// read lock
|
// read lock
|
||||||
|
|
Loading…
Reference in a new issue