Fixed: Use exec instead of open to launch an executable under OS X

This commit is contained in:
kervala 2016-10-10 18:54:03 +02:00
parent aaf1b2baf3
commit 353458b28a

View file

@ -329,8 +329,8 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString
QMap<QString, QString> strings;
// build command
QString command = QString("open \"%1\"").arg(executable);
if (!arguments.isEmpty()) command += " --args " + arguments;
QString command = QString("exec \"%1\"").arg(executable);
if (!arguments.isEmpty()) command += " " + arguments;
strings.clear();
strings["COMMAND"] = command;