Commit bcb550fa authored by Niko Sams's avatar Niko Sams
Browse files

Fix execute in external terminal for executables with spaces in path

BUG: 276119
FIXED-IN: 4.3
parent 947113c7
......@@ -115,9 +115,9 @@ NativeAppJob::NativeAppJob(QObject* parent, KDevelop::ILaunchConfiguration* cfg)
QStringList args = KShell::splitArgs(iface->terminal(cfg));
for (QStringList::iterator it = args.begin(); it != args.end(); ++it) {
if (*it == "%exe") {
*it = executable.toLocalFile();
*it = KShell::quoteArg(executable.toLocalFile());
} else if (*it == "%workdir") {
*it = wc.toLocalFile();
*it = KShell::quoteArg(wc.toLocalFile());
}
}
args.append( arguments );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment