kde-workspace/kcontrol/krdb/krdb.cpp
Ivailo Monev 850c98cc3d kcontrol: convert krdb to standalone program
fixes some race-conditions, for reference:
9ed7286504

also the exit() call in case of failure to open the temporary file would
exit the program calling runRdb() (systemsettings for example) with
status 0 (normal, when an error ocurred), that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-07-24 08:04:16 +03:00

18 lines
527 B
C++

/****************************************************************************
**
** Copyright (C) 2023 by Ivailo Monev <xakepa10@gmail.com>
** This application is freely distributable under the GNU Public License.
**
*****************************************************************************/
#include <QProcess>
#include <kdebug.h>
void runRdb()
{
const int krdbstatus = QProcess::execute(QString::fromLatin1("krdb"));
if (krdbstatus != 0) {
kWarning() << "krdb exited abnormally" << krdbstatus;
}
}