KAuth works out of the box, given a perfect setup. When using standard installations, so to /usr with all default settings, you usually have everything already set up for you. Although, in some other cases (for example installing to a different prefix), some tweaks are needed to make everything work. Let's find out what's the deal with KAuth error codes, and how to fix them.
The helper responder object hasn't been set. This shouldn't happen if you use the KDE4_AUTH_HELPER macro in the helper source.
For example, on the bottom of your helper's source code add,
You spotted a problem where either
You tried to execute an invalid action object. If you encountered this error, you're into weird stuff. File a bug against KAuth.
The most common error caused by a broken setup. First of all, make sure system policies do not prevent you from executing that specific action. If you do not know what this means, the answer is usually yes.
At this stage, ALL of the following conditions have to be met for the system to work properly:
This can appear only after the user explicitely cancelled the action: if this is not the case, please file a bug against KAuth
It means that a previous action has not been completed. If you are getting this error while being sure that no other action is being performed concurrently, please file a bug against the application, NOT KAuth. We'll take care of redirecting it if that's the case.
This is a son of Error code 4, although it means that only the DBus part of the three conditions mentioned is missing. Please follow those instruction to make this error go away.
Your application could also have misplaced your .service, .actions, and .conf files. See the KAuth Basics tutorial regarding your .actions file. The .service and .conf files are auto generated at build time, but are installed in different locations than the .actions file.
Remember that DBus configuration might take a while to be reloaded, and in some cases the DBus daemon even needs to be restarted. Be sure to perform a reboot after applying those solutions to be 100% sure to test the new behavior in an uncompromised environment.