[useractions] Print debug message if launching kcmshell5 fails

If one cannot launch kcmshell5 some runtime components are missing. Thus
using kdialog (like in TabBox) or a notification would probably fail,
too. So at least print a debug warning to stdout.

BUG: 334860
REVIEW: 118161
This commit is contained in:
Martin Gräßlin 2014-05-16 12:12:09 +02:00
parent 6bd16ab166
commit 25155e0092

View file

@ -316,7 +316,10 @@ void UserActionsMenu::init()
// opens the KWin configuration
QStringList args;
args << QStringLiteral("--icon") << QStringLiteral("preferences-system-windows") << configModules(false);
KToolInvocation::kdeinitExec(QStringLiteral("kcmshell5"), args);
QString error;
if (KToolInvocation::kdeinitExec(QStringLiteral("kcmshell5"), args, &error) != 0) {
qDebug() << "Failed to start kcmshell5: " << error;
}
}
);
}