Deprecated PolkitBackendActionLookup
authorDavid Zeuthen <davidz@redhat.com>
Thu, 3 Mar 2011 18:13:11 +0000 (13:13 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Thu, 3 Mar 2011 18:18:05 +0000 (13:18 -0500)
commit02cebdb060e76e6d176f05ef24968e6d17225edb
treead0bf3810442b299a21e5014364ab6733ead4475
parent76792accc8c846059b551dfba91ec3cd24d45d71
Deprecated PolkitBackendActionLookup

Instead, pass the untranslated message as polkit.message and set the
gettext domain on polkit.gettext_domain. For printf()-style messages,
occurences of the form $(name_of_key) in the translated version of
polkit.message are expanded with the value of the property
name_of_key. See the pkexec(1) mechanism for an example of how to use
this.

Additionally, the property polkit.icon_name can be set to the
icon. Note that not all authentication agents use this - in
particular, gnome-shell does not.

It is no longer possible to set the details to be shown in the
authentication dialog. It was never a good idea to hide information
there anyway. Instead, the mechanism should format a meaningful
message.

Signed-off-by: David Zeuthen <davidz@redhat.com>
17 files changed:
docs/man/pkexec.xml
docs/polkit/docbook-interface-org.freedesktop.PolicyKit1.AuthenticationAgent.xml
docs/polkit/docbook-interface-org.freedesktop.PolicyKit1.Authority.xml
docs/polkit/overview.xml
docs/polkit/polkit-1-docs.xml
po/POTFILES.in
po/da.po
src/examples/org.freedesktop.policykit.examples.pkexec.policy.in
src/polkit/polkitauthority.c
src/polkitbackend/polkitbackendactionlookup.c
src/polkitbackend/polkitbackendactionlookup.h
src/polkitbackend/polkitbackendauthority.c
src/polkitbackend/polkitbackendinteractiveauthority.c
src/polkitbackend/polkitbackendlocalauthority.c
src/programs/Makefile.am
src/programs/pkexec-action-lookup.c [deleted file]
src/programs/pkexec.c