From 47b087950dcfaf6fdda63c4d5f13efda3508a6fb Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 1 May 2024 16:47:31 +0100 Subject: [PATCH] hyprctl: fix instances path fixes #5831 --- hyprctl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 2d1b5a76..097ef5d8 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -59,7 +59,7 @@ std::vector instances() { // read lock SInstanceData* data = &result.emplace_back(); - data->id = el.path().string(); + data->id = el.path().filename().string(); try { data->time = std::stoull(data->id.substr(data->id.find_first_of('_') + 1, data->id.find_last_of('_') - (data->id.find_first_of('_') + 1)));