diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index 7a0682c4b..58743e8a5 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -380,7 +380,7 @@ var AuthenticationAgent = new Lang.Class({ } }, - _onInitiate(nativeAgent, actionId, message, iconName, cookie, userNames) { + _onInitiate(nativeAgent, actionId, message, iconName, cookie, subjectPid, userNames) { // Don't pop up a dialog while locked if (Main.sessionMode.isLocked) { this._sessionUpdatedId = Main.sessionMode.connect('updated', () => { diff --git a/src/shell-polkit-authentication-agent.c b/src/shell-polkit-authentication-agent.c index 152c6e247..0ab8ca522 100644 --- a/src/shell-polkit-authentication-agent.c +++ b/src/shell-polkit-authentication-agent.c @@ -162,7 +162,8 @@ shell_polkit_authentication_agent_class_init (ShellPolkitAuthenticationAgentClas NULL, /* accumulator data */ NULL, /* marshaller */ G_TYPE_NONE, - 5, + 6, + G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, @@ -267,6 +268,7 @@ auth_request_initiate (AuthRequest *request) request->message, request->icon_name, request->cookie, + polkit_details_lookup (request->details, "polkit.subject-pid"), user_names); g_strfreev (user_names); }