fix linux
This commit is contained in:
parent
eff8a9e514
commit
f8e2b6d0cd
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue