mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00

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>
18 lines
527 B
C++
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;
|
|
}
|
|
}
|
|
|