fix(app-data-service):修复pid转desktop接口失效问题

This commit is contained in:
iaom 2024-02-06 16:49:03 +08:00
parent 90a59819cc
commit cbbd5f980a
1 changed files with 1 additions and 1 deletions

View File

@ -1343,7 +1343,7 @@ bool AppDBManager::handleValueSet(const ApplicationInfoMap appInfoMap)
QString AppDBManager::tranPidToDesktopFp(uint pid)
{
QString desktopFilePath;
QDBusReply<QString> reply = m_processManagerInterface->call("GetDesktopFileByPid", pid);
QDBusReply<QString> reply = m_processManagerInterface->call("GetDesktopFileByPid", static_cast<int>(pid));
if (reply.isValid()) {
desktopFilePath = reply.value();
qDebug() << "PID: " << pid << "Desktop file path: " << desktopFilePath;