This port is broken AFAICT - it tries to run the full Exec= line as binary, without
splitting arguments first.
This reverts commit 59cbea835502428f30c1495abe4a1b3d133103e3.
This port is broken AFAICT - it tries to run the full Exec= line as binary, without
splitting arguments first.
This reverts commit 59cbea835502428f30c1495abe4a1b3d133103e3.
Builds fine.
No Linters Available |
No Unit Test Coverage |
Buildable 23310 | |
Build 23328: arc lint + arc unit |
src/runtime/kserviceactioncomponent.cpp | ||
---|---|---|
72 | Hum... interesting: #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) QStringList arguments = QProcess::splitCommand(commandLine); const QString prog = arguments.takeFirst(); QProcess::startDetached(prog, arguments); } |
Looking at upstream code, it looks like they introduced a static splitCommad() method since 5.15, so I think we'll have to use a
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
kludge to handle this case. Their rationale is more precise argument handling, which sort of makes sense:
https://code.qt.io/cgit/qt/qtbase.git/commit/?id=92eea633491ce8138c5caceb904ad26c1eb91044
https://code.qt.io/cgit/qt/qtbase.git/commit/?id=2090b770daa87039f27c15aad6bdbc42e5fe702c
EDIT: too late, I took too long to type :D
The split arguments are already available as parts above, as used in the klauncher call AFAICT.
if splitting is already done why this code re-call "m_desktopFile.desktopGroup().readEntry(QStringLiteral("Exec"), QString())" ?