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

This commit is contained in:
iaom 2024-02-06 16:49:03 +08:00
parent aae33d4e89
commit 5b547a6699
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 AppDBManager::tranPidToDesktopFp(uint pid)
{ {
QString desktopFilePath; QString desktopFilePath;
QDBusReply<QString> reply = m_processManagerInterface->call("GetDesktopFileByPid", pid); QDBusReply<QString> reply = m_processManagerInterface->call("GetDesktopFileByPid", static_cast<int>(pid));
if (reply.isValid()) { if (reply.isValid()) {
desktopFilePath = reply.value(); desktopFilePath = reply.value();
qDebug() << "PID: " << pid << "Desktop file path: " << desktopFilePath; qDebug() << "PID: " << pid << "Desktop file path: " << desktopFilePath;