hyprctl: fix instances path

fixes #5831
This commit is contained in:
Vaxry 2024-05-01 16:47:31 +01:00
parent 8bcccf9f0f
commit 47b087950d

View file

@ -59,7 +59,7 @@ std::vector<SInstanceData> instances() {
// read lock // read lock
SInstanceData* data = &result.emplace_back(); SInstanceData* data = &result.emplace_back();
data->id = el.path().string(); data->id = el.path().filename().string();
try { 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))); data->time = std::stoull(data->id.substr(data->id.find_first_of('_') + 1, data->id.find_last_of('_') - (data->id.find_first_of('_') + 1)));