mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-28 00:12:26 +00:00
feat: adapt AyuGram to Flatpak (#10)
This commit is contained in:
@@ -198,7 +198,7 @@ bool GenerateDesktopFile(
|
||||
DEBUG_LOG(("App Info: placing .desktop file to %1").arg(targetPath));
|
||||
if (!QDir(targetPath).exists()) QDir().mkpath(targetPath);
|
||||
|
||||
const auto sourceFile = u":/misc/ayugram.desktop.desktop"_q;
|
||||
const auto sourceFile = u":/misc/com.ayugram.desktop.desktop"_q;
|
||||
const auto targetFile = targetPath
|
||||
+ QGuiApplication::desktopFileName()
|
||||
+ u".desktop"_q;
|
||||
@@ -319,7 +319,7 @@ bool GenerateDesktopFile(
|
||||
hashMd5Hex(d.constData(), d.size(), md5Hash);
|
||||
|
||||
if (!Core::Launcher::Instance().customWorkingDir()) {
|
||||
QFile::remove(u"%1org.telegram.desktop._%2.desktop"_q.arg(
|
||||
QFile::remove(u"%1ayugram.desktop._%2.desktop"_q.arg(
|
||||
targetPath,
|
||||
md5Hash));
|
||||
|
||||
@@ -623,10 +623,10 @@ void start() {
|
||||
md5Hash.data());
|
||||
}
|
||||
|
||||
return u"ayugram.desktop._%1"_q.arg(md5Hash.constData());
|
||||
return u"com.ayugram.desktop._%1"_q.arg(md5Hash.constData());
|
||||
}
|
||||
|
||||
return u"ayugram.desktop"_q;
|
||||
return u"com.ayugram.desktop"_q;
|
||||
}());
|
||||
|
||||
LOG(("App ID: %1").arg(QGuiApplication::desktopFileName()));
|
||||
|
||||
Reference in New Issue
Block a user