fix linux

This commit is contained in:
DanielSvoboda 2024-07-06 13:40:26 -03:00 committed by GitHub
parent eff8a9e514
commit f8e2b6d0cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

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