diff options
author | Vaxry <[email protected]> | 2024-05-01 16:47:31 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-01 16:47:38 +0100 |
commit | 47b087950dcfaf6fdda63c4d5f13efda3508a6fb (patch) | |
tree | 5ec02116ecb4a0b96958c4655448c0414ab41f32 /hyprctl/main.cpp | |
parent | 8bcccf9f0f0f69986e315d4288dfdbf119dd19db (diff) | |
download | Hyprland-47b087950dcfaf6fdda63c4d5f13efda3508a6fb.tar.gz Hyprland-47b087950dcfaf6fdda63c4d5f13efda3508a6fb.zip |
hyprctl: fix instances path
fixes #5831
Diffstat (limited to 'hyprctl/main.cpp')
-rw-r--r-- | hyprctl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SInstanceData> 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))); |