diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 133a00dbdf..5280ecbcf6 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -1693,12 +1694,11 @@ void KTranslucencyConfig::defaults() bool KTranslucencyConfig::kompmgrAvailable() { - bool ret; - K3Process proc; + KProcess proc; + proc.setOutputChannelMode( KProcess::MergedChannels ); + proc.setStandardOutputFile( "/dev/null" ); proc << "kompmgr" << "-v"; - ret = proc.start(K3Process::DontCare, K3Process::AllOutput); - proc.detach(); - return ret; + return proc.startDetached() != 0; } void KTranslucencyConfig::showWarning(bool alphaActivated)