In order to use QProcess::setProgram() we need to split the command into
a list of tokens. Unfortunately, the relevant method had been introduced
only in Qt 5.15.
In order to avoid regressions, this change partially reverts cca0e15b45.
davidedmundson |
KWin |
In order to use QProcess::setProgram() we need to split the command into
a list of tokens. Unfortunately, the relevant method had been introduced
only in Qt 5.15.
In order to avoid regressions, this change partially reverts cca0e15b45.
dbus-run-session kwin_wayland "kate foo.txt" works again.
No Linters Available |
No Unit Test Coverage |
Buildable 26019 | |
Build 26037: arc lint + arc unit |
If you want something non-deprecated KProcess might be worth looking into.
It's a QProcess wrapper that exists for handling multiple args properly.
main_wayland.cpp | ||
---|---|---|
261 | You can use KShell::splitArgs(). |
I'll submit a patch that uses KShell::splitArgs().
main_wayland.cpp | ||
---|---|---|
261 | Thanks. I didn't know about it. :/ |