k3process--

svn path=/trunk/KDE/kdebase/workspace/; revision=682899
This commit is contained in:
Oswald Buddenhagen 2007-07-03 16:41:48 +00:00
parent f711ea836e
commit a5bcef35f3

View file

@ -47,6 +47,7 @@
#include <kapplication.h>
#include <kdialog.h>
#include <kglobal.h>
#include <kprocess.h>
#include <k3process.h>
#include <QTabWidget>
#include <QtDBus/QtDBus>
@ -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)