From b0dd943e1d454a15854b37c3d4ba4280cc3bd5a7 Mon Sep 17 00:00:00 2001 From: black-desk Date: Tue, 29 Aug 2023 10:19:31 +0800 Subject: [PATCH] fix: adjust processUnitName `<2` should be fine to make later two takeLast work fine and avoid crash. It seems that `<3` will make kde scope (without launcher in unit name) not working. --- src/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.h b/src/global.h index deaa112..36bc21e 100644 --- a/src/global.h +++ b/src/global.h @@ -443,7 +443,7 @@ inline QPair processUnitName(const QString &unitName) auto app = unitName.sliced(0, lastDotIndex); auto components = app.split('-'); - if (components.size() < 3) { + if (components.size() < 2) { qDebug() << unitName << "is not a xdg application ignore"; return {}; }