Merge pull request #254 from DanielSvoboda/Create-Shortcut

fix linux again
This commit is contained in:
georgemoralis 2024-07-06 22:39:31 +03:00 committed by GitHub
commit 575acc4bd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ public:
#else
linkPath = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation) + "/" +
QString::fromStdString(m_games[itemID].name);
QString::fromStdString(m_games[itemID].name) + ".desktop";
#endif
// Convert the icon to .ico if necessary
@ -311,7 +311,7 @@ private:
QTextStream out(&shortcutFile);
out << "[Desktop Entry]\n";
out << "Version=1.0\n";
out << "Name=" << QFileInfo(targetPath).baseName() << "\n";
out << "Name=" << QFileInfo(linkPath).baseName() << "\n";
out << "Exec=" << QCoreApplication::applicationFilePath() << " \"" << targetPath << "\"\n";
out << "Icon=" << iconPath << "\n";
out << "Terminal=false\n";