- // Now its the tricky part ... its temporary (probably)
- // We dont have any tar-dev and bz2-dev packages on maemo so we need
- // to call commands via shell, each command from list is called after
- // previous call returns 0
-
- currentCommand = 0;
- commands.clear();
- commands.push_back("rm -rf /tmp/mdict");
- commands.push_back("mkdir /tmp/mdict");
-
- // Downloading xdxf dict from sourceforge is kind of complicated,
- // there is a lot of redirection and QNetwork* is kind of lost, we
- // tried to follow redirection (by hand) but we end up with some
- // page and js scripts and thats all
- // Maybe calling wget is not pretty one but its working!
- commands.push_back("wget --quiet -P /tmp/ " + url);
-
- //commands.push_back(QString("tar -xjvf /tmp/") + _fileName + QString(" -C /tmp/mdict"));
+ QProcess clean;
+ clean.start("rm -rf /tmp/mdict");
+ clean.waitForFinished(-1);
+ clean.start("mkdir /tmp/mdict");
+ clean.waitForFinished(-1);