Commit 99007b55 authored by David Edmundson's avatar David Edmundson

Port all instances of Kauthorized action/shell_command to shell_command

The KAuthorized key to prevent shell access according the documentation
is simply "shell_action" not "action/shellAction" so should use
authorize not authorizeKAction

This appears to have come about as part of a porting bug when going from
KApplication::authorize to KAuthorized in kdelibs3 to kdelibs4.

To currently block shell access a sysadmin currently needs to
have both keys set already, so we can be confident it won't have any
actual compatibility problems.

REVIEW: 127966
parent ed5f5956
......@@ -216,7 +216,7 @@ bool ShellProcess::authorised()
if (!mInitialised)
mAuthorised = KAuthorized::authorizeKAction(QStringLiteral("shell_access"));
mAuthorised = KAuthorized::authorize(QStringLiteral("shell_access"));
mInitialised = true;
return mAuthorised;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment