mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Check actual executable path instead of cExeName in GenerateDesktopFile
This commit is contained in:
parent
ac589cb51e
commit
0421e41c47
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,8 @@ bool GenerateDesktopFile(
|
||||||
const QStringList &args = {},
|
const QStringList &args = {},
|
||||||
bool onlyMainGroup = false,
|
bool onlyMainGroup = false,
|
||||||
bool silent = false) {
|
bool silent = false) {
|
||||||
if (targetPath.isEmpty() || cExeName().isEmpty()) {
|
const auto executable = ExecutablePathForShortcuts();
|
||||||
|
if (targetPath.isEmpty() || executable.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +192,6 @@ bool GenerateDesktopFile(
|
||||||
|
|
||||||
const auto sourceFile = kDesktopFile.utf16();
|
const auto sourceFile = kDesktopFile.utf16();
|
||||||
const auto targetFile = targetPath + QGuiApplication::desktopFileName();
|
const auto targetFile = targetPath + QGuiApplication::desktopFileName();
|
||||||
const auto executable = ExecutablePathForShortcuts();
|
|
||||||
|
|
||||||
const auto sourceText = [&] {
|
const auto sourceText = [&] {
|
||||||
QFile source(sourceFile);
|
QFile source(sourceFile);
|
||||||
|
|
Loading…
Add table
Reference in a new issue