refact: hidden escaped app id in dbus object path
Signed-off-by: black-desk <me@black-desk.cn>
This commit is contained in:
parent
b0c3475a3d
commit
c4c1d72568
@ -75,7 +75,12 @@ private:
|
||||
auto dbusAppid = m_desktopSource.m_file.desktopId();
|
||||
|
||||
if constexpr (std::is_same_v<T, DesktopFile>) {
|
||||
m_applicationPath = QDBusObjectPath{objectPath + escapeToObjectPath(dbusAppid)};
|
||||
m_applicationPath =
|
||||
#ifdef QT_DEBUG
|
||||
QDBusObjectPath{objectPath + escapeToObjectPath(dbusAppid)};
|
||||
#else
|
||||
QDBusObjectPath{objectPath + QUuid::createUuid().toString(QUuid::Id128)};
|
||||
#endif
|
||||
m_isPersistence = true;
|
||||
sourceFile.setFileName(m_desktopSource.m_file.filePath());
|
||||
if (!sourceFile.open(QFile::ExistingOnly | QFile::ReadOnly | QFile::Text)) {
|
||||
|
Loading…
Reference in New Issue
Block a user