Skip to content

Fix QT_PLUGIN_PATH for unittests

Ahmad Samir requested to merge work/ahmad/plugins into master

It was missing the "/plugins" suffix; found while building KIO with Qt6, where many unittests were failing with "couldn't create slave" for all slaves; the kio slaves are in builddir/bin/plugins/kf5/kio, and KPluginMetaData searches the directory "kf5/kio", and since it's a relative path, it assumes it's in the "plugins" dir.

Keep the old behaviour for repos that put the plugins in builddir/bin/ directly without a "plugins" dir.

Merge request reports