--- cups-pk-helper-0.0.4/src/cups-pk-helper-mechanism.c.polkit-result 2009-08-17 14:55:52.000000000 +0200 +++ cups-pk-helper-0.0.4/src/cups-pk-helper-mechanism.c 2009-08-17 14:55:52.000000000 +0200 @@ -278,7 +278,7 @@ _check_polkit_for_action_internal (CphMe NULL); g_object_unref (pk_caller); - if (!polkit_authorization_result_get_is_authorized (pk_result)) { + if (pk_result == NULL || !polkit_authorization_result_get_is_authorized (pk_result)) { g_set_error (error, CPH_MECHANISM_ERROR, CPH_MECHANISM_ERROR_NOT_PRIVILEGED, --- cups-pk-helper-0.0.4/src/org.opensuse.cupspkhelper.mechanism.policy.in.polkit-result 2009-08-17 14:55:52.000000000 +0200 +++ cups-pk-helper-0.0.4/src/org.opensuse.cupspkhelper.mechanism.policy.in 2009-08-17 14:55:52.000000000 +0200 @@ -12,8 +12,8 @@ operation: if some authorization is required, then the PolicyKit helper will fallback on printer-X-edit. --> - <_description>Set a printer as default printer - <_message>Privileges are required to set a printer, or a class, as default printer. + Set a printer as default printer + Privileges are required to set a printer, or a class, as default printer. no auth_admin_keep @@ -24,8 +24,8 @@ operation: if some authorization is required, then the PolicyKit helper will fallback on printer-X-edit. --> - <_description>Enable/Disable a printer - <_message>Privileges are required to enable/disable a printer, or a class. + Enable/Disable a printer + Privileges are required to enable/disable a printer, or a class. no auth_admin_keep @@ -33,8 +33,8 @@ - <_description>Add/Remove/Edit a local printer - <_message>Privileges are required to add/remove/edit a local printer. + Add/Remove/Edit a local printer + Privileges are required to add/remove/edit a local printer. no auth_admin_keep @@ -42,8 +42,8 @@ - <_description>Add/Remove/Edit a remote printer - <_message>Privileges are required to add/remove/edit a remote printer. + Add/Remove/Edit a remote printer + Privileges are required to add/remove/edit a remote printer. no auth_admin_keep @@ -51,8 +51,8 @@ - <_description>Add/Remove/Edit a class - <_message>Privileges are required to add/remove/edit a class. + Add/Remove/Edit a class + Privileges are required to add/remove/edit a class. no auth_admin_keep @@ -60,8 +60,8 @@ - <_description>Get/Set server settings - <_message>Privileges are required to get/set server settings. + Get/Set server settings + Privileges are required to get/set server settings. no auth_admin_keep @@ -69,8 +69,8 @@ - <_description>Restart/Cancel/Edit a job - <_message>Privileges are required to restart/cancel/edit a job. + Restart/Cancel/Edit a job + Privileges are required to restart/cancel/edit a job. no yes @@ -78,8 +78,8 @@ - <_description>Restart/Cancel/Edit a job owned by another user - <_message>Privileges are required to restart/cancel/edit a job owned by another user. + Restart/Cancel/Edit a job owned by another user + Privileges are required to restart/cancel/edit a job owned by another user. no auth_admin_keep @@ -87,8 +87,8 @@ - <_description>Get devices - <_message>Privileges are required to get devices. + Get devices + Privileges are required to get devices. no auth_admin_keep @@ -97,8 +97,8 @@ - <_description>Add/Remove/Edit a printer - <_message>Privileges are required to add/remove/edit a printer. + Add/Remove/Edit a printer + Privileges are required to add/remove/edit a printer. no auth_admin_keep