mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Fixed: Use exec instead of open to launch an executable under OS X
--HG-- branch : develop
This commit is contained in:
parent
9a402ea68c
commit
73fd215b21
1 changed files with 2 additions and 2 deletions
|
@ -329,8 +329,8 @@ bool createShortcut(const QString &shortcut, const QString &name, const QString
|
||||||
QMap<QString, QString> strings;
|
QMap<QString, QString> strings;
|
||||||
|
|
||||||
// build command
|
// build command
|
||||||
QString command = QString("open \"%1\"").arg(executable);
|
QString command = QString("exec \"%1\"").arg(executable);
|
||||||
if (!arguments.isEmpty()) command += " --args " + arguments;
|
if (!arguments.isEmpty()) command += " " + arguments;
|
||||||
|
|
||||||
strings.clear();
|
strings.clear();
|
||||||
strings["COMMAND"] = command;
|
strings["COMMAND"] = command;
|
||||||
|
|
Loading…
Reference in a new issue