kioslave hardcoded path

Kevin Funk kfunk at
Tue Dec 27 19:29:27 UTC 2016

On Tuesday, 27 December 2016 20:15:54 CET Kevin Funk wrote:
> On Tuesday, 27 December 2016 00:30:32 CET Jean-Baptiste Mardelle wrote:
> > Hi all,
> > 
> > We are working on a Kdenlive Windows version, compiled with mxe. We got it
> > mostly working, but have a problem with the kioslaves.
> > 
> > Simply opening a filedialog (KFileDialog), we get an error related to
> > kioslaves, and no files/directories are displayed. The error message
> > (translated approximately from french) :
> > 
> > Cannot start process, klauncher could not load: "/path/to/kioslave"

Just noticed: The way you're starting the KIO slaves is the one going through 
DBus+klauncher. If that's actually intended, then you might need to patch 
stuff in kinit.git -- so far everyone avoid DBus+klauncher on Windows for good 

Let me elaborate, there are two ways to start kio slaves:
a) KIO asks klauncher via DBus to launch KIO processes
b) KIO directly forks off KIO processes

(a) is chosen if an available DBus session is detected, (b) is the fallback.

To *always* use (b), you have two options: 
- Make sure there's no DBus session (or dbus-daemon.exe available to start 
- Set the KDE_FORK_SLAVES env var [1], this is what we do in KDevelop:

(b) is the tested variant, which works fine for Kate/KDevelop/others...

Hope that helps,


> Yes, the installation path is compiled into the binary.
> Though kio looks into two other paths since quite some time now:
> Are you using an outdated KF5 version? Or are you installing KF5 into a
> different prefix maybe? For the latter, you might need to tweak qt.conf, as
> described in the RR.
> Cheers,
> Kevin
> > The problem is that "/path/to/kioslave" points to the folder where the
> > kdeframeworks compilation happened on the linux machine, so it seems like
> > the kioslave path is hardcoded at compile time.
> > 
> > I tried to set the QT_PLUGIN_PATH variable to redirect to a correct path
> > on
> > runtime but it didn't work.
> > 
> > Do you have any suggestion to fix that hardcoded path ?
> > 
> > Thanks
> > 
> > Jean-Baptiste Mardelle

Kevin Funk | kfunk at |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Kde-windows mailing list