fix: 修复应用数据不全的问题

部分应用id中间包含点号,在解析时直接去掉结尾.desktop

Log:
Task: https://pms.uniontech.com/task-view-145329.html
Influence: 应用数据正确
Change-Id: I14ac7080a5d26fc086523f85ee0a2f679ccb2745
This commit is contained in:
weizhixiang 2022-06-08 21:50:57 +08:00
parent 44b18dd1b1
commit 27b8997916

View File

@ -1188,7 +1188,10 @@ QString Launcher::getAppIdByFilePath(QString filePath, QStringList dirs)
}
}
return appId.isEmpty() ? "" : appId.split(".")[0];
if (appId.isEmpty())
return QString();
return appId.remove(".desktop");
}