[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:
parent
6bd16ab166
commit
25155e0092
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue