fix linux

This commit is contained in:
DanielSvoboda authored and GitHub committed 2024-07-06 13:40:26 -03:00
1 parent eff8a9e514
commit f8e2b6d0cd
1 file changed
+2 -3
+2 -3
View File
@@ -147,7 +147,7 @@ public:
#else
linkPath = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation) + "/" +
QString::fromStdString(m_games[itemID].name) + ".desktop";
QString::fromStdString(m_games[itemID].name);
#endif
// Convert the icon to .ico if necessary
@@ -312,8 +312,7 @@ private:
out << "[Desktop Entry]\n";
out << "Version=1.0\n";
out << "Name=" << QFileInfo(targetPath).baseName() << "\n";
out << "Exec=" << QCoreApplication::applicationFilePath().replace("\\", "/") << " \""
<< targetPath.replace("\\", "/") << "\"\n";
out << "Exec=" << QCoreApplication::applicationFilePath() << " \"" << targetPath << "\"\n";
out << "Icon=" << iconPath.replace("\\", "/") << "\n";
out << "Terminal=false\n";
out << "Type=Application\n";