Skip to content

Fix startHostProcess() for KProcess < KF5.97

Kåre Särs requested to merge work/fix_kprocess into master

Since startHostProcess takes a QProcess and KProcess was modified to behave more like a QProcess in 5.97, the #else needs to execute the start() function of KProcess and not QPorcess. -> try to qobject_cast the passed process to KProcess and use that if possible.

The introduction of startHostProcess() broke at least the katebuild-plugin with KF5 < 5.97. The process did not get started.

I hope this is the right fix for this. It works at least for the build plugin.

Merge request reports