"there are kde applications running" message on updating
Mihai Dobrescu
msdobrescu at gmail.com
Thu Jan 3 10:05:18 UTC 2013
Hello,
I have installed KDE on Windows 7, msvc build, and I try to update it.
I have no KDE processes except the KDE installer itself, but I get the
"there are kde applications running" message and I can't update KDE.
I think I've found the issue.
In the code:
bool InstallerEngine::isAnyKDEProcessRunning()
{
QString cmd = m_root +""/bin/kdeinit4.exe"";
QProcess p;
QStringList args = QStringList() << ""--list"";
p.start(cmd,args);
if (!p.waitForStarted())
{
qCritical() << ""could not start"" << cmd << args;
return false;
}
if (!p.waitForFinished())
{
qCritical() << ""failed to run"" << cmd << args;
return false;
}
QByteArray _stderr = p.readAllStandardError();
qDebug() << ""run"" << cmd << args << ""without errors"" << _stderr;
QList<QByteArray> lines = _stderr.split('\n');
int ret = lines.size() - 1; // because of trailing '\n'
// one line means ony kdeinit4 is running
return ret > 1;
}
Issuning kdeinit4:
M:\KDE\bin>kdeinit4 --list
path: M:/KDE/SETUP name: kdewin-installer-gui-latest pid: 3936
path: M:/KDE/bin name: kdeinit4 pid: 7732
M:\KDE\bin>
So, there is an additional line, because kdeinit4 reports itself, the
installer process is also there and the '\n' too.
Regards,
Mike.
More information about the Kde-windows
mailing list