Use TDEProcIO class

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/25/head
Michele Calgaro 7 months ago
parent 08c9aa58e3
commit 39632dffef
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -27,7 +27,7 @@
#include <tdeconfig.h>
#include <tdeprocess.h>
#include <kprocio.h>
#include <tdeprocio.h>
#include <kstandarddirs.h>
#include <tdeaccelmanager.h>
@ -48,7 +48,7 @@ GCstarPluginFetcher::PluginList GCstarPluginFetcher::plugins(int collType_) {
TQString gcstar = TDEStandardDirs::findExe(TQString::fromLatin1("gcstar"));
if(pluginParse == NotYet) {
KProcIO proc;
TDEProcIO proc;
proc << gcstar << TQString::fromLatin1("--version");
// wait 5 seconds at most, just a sanity thing, never want to block completely
if(proc.start(TDEProcess::Block) && proc.wait(5)) {
@ -92,7 +92,7 @@ void GCstarPluginFetcher::readPluginsNew(int collType_, const TQString& gcstar_)
return;
}
KProcIO proc;
TDEProcIO proc;
proc << gcstar_
<< TQString::fromLatin1("-x")
<< TQString::fromLatin1("--list-plugins")

Loading…
Cancel
Save