mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix GApplication with some binary paths
This commit is contained in:
@@ -514,6 +514,19 @@ bool GenerateDesktopFile(
|
|||||||
targetPath,
|
targetPath,
|
||||||
md5Hash,
|
md5Hash,
|
||||||
AppName.utf16().replace(' ', '_')));
|
AppName.utf16().replace(' ', '_')));
|
||||||
|
|
||||||
|
const auto d = QFile::encodeName(QDir(cWorkingDir()).absolutePath());
|
||||||
|
hashMd5Hex(d.constData(), d.size(), md5Hash);
|
||||||
|
|
||||||
|
if (!Core::Sandbox::Instance().customWorkingDir()) {
|
||||||
|
const auto exePath = QFile::encodeName(
|
||||||
|
cExeDir() + cExeName());
|
||||||
|
hashMd5Hex(exePath.constData(), exePath.size(), md5Hash);
|
||||||
|
}
|
||||||
|
|
||||||
|
QFile::remove(qsl("%1org.telegram.desktop.%2.desktop").arg(
|
||||||
|
targetPath,
|
||||||
|
md5Hash));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -707,7 +720,7 @@ void start() {
|
|||||||
md5Hash.data());
|
md5Hash.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
return qsl("org.telegram.desktop.%1.desktop").arg(md5Hash);
|
return qsl("org.telegram.desktop._%1.desktop").arg(md5Hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
return qsl("org.telegram.desktop.desktop");
|
return qsl("org.telegram.desktop.desktop");
|
||||||
|
Reference in New Issue
Block a user