Linux: fixes

- Fix shortcut icons
- Possibly fix shortcut creation on AppImages
- Fix shortcut not working if path to launcher contains spaces

Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
This commit is contained in:
ADudeCalledLeo
2022-11-13 17:51:29 +02:00
parent 43b9d9484d
commit b0269e6dfc
2 changed files with 44 additions and 8 deletions

View File

@ -382,8 +382,8 @@ bool createShortcut(QString destination, QString target, QStringList args, QStri
<< "\n";
stream << "Type=Application"
<< "\n";
stream << "TryExec=" << target.toLocal8Bit() << "\n";
stream << "Exec=" << target.toLocal8Bit() << argstring.toLocal8Bit() << "\n";
stream << "TryExec=\"" << target.toLocal8Bit() << "\"\n";
stream << "Exec=\"" << target.toLocal8Bit() << "\"" << argstring.toLocal8Bit() << "\n";
stream << "Name=" << name.toLocal8Bit() << "\n";
if (!icon.isEmpty())
{