diff options
author | David Zeuthen <davidz@redhat.com> | 2012-05-24 15:50:59 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2012-05-24 15:50:59 -0400 |
commit | 587deddf80b2ad72d1ff21a2d5858c720303106c (patch) | |
tree | 5f8d40a5d0f6618c3d41ceef5e2026b18e2f2b83 /src/programs | |
parent | 0e85f07781f8eab9670e06cee32b38657e3b62ce (diff) | |
download | polkit-587deddf80b2ad72d1ff21a2d5858c720303106c.tar.gz |
Clarify pkexec(1) variables
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'src/programs')
-rw-r--r-- | src/programs/pkexec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index db13cf9..d87825c 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -669,11 +669,13 @@ main (int argc, char *argv[]) details = polkit_details_new (); polkit_details_insert (details, "user", pw->pw_name); + if (pw->pw_gecos != NULL) + polkit_details_insert (details, "user.gecos", pw->pw_gecos); if (pw->pw_gecos != NULL && strlen (pw->pw_gecos) > 0) s = g_strdup_printf ("%s (%s)", pw->pw_gecos, pw->pw_name); else s = g_strdup_printf ("%s", pw->pw_name); - polkit_details_insert (details, "user_full", s); + polkit_details_insert (details, "user.display", s); g_free (s); polkit_details_insert (details, "program", path); polkit_details_insert (details, "command_line", command_line); @@ -696,7 +698,7 @@ main (int argc, char *argv[]) * be expanded to the path of the program e.g. "/bin/bash" and the latter * to the user e.g. "John Doe (johndoe)" or "johndoe". */ - N_("Authentication is needed to run `$(program)' as user $(user)")); + N_("Authentication is needed to run `$(program)' as user $(user.display)")); } } polkit_details_insert (details, "polkit.gettext_domain", GETTEXT_PACKAGE); |