#1031152 system-config-printer: unlock button in system-config-printer provides no elevated permissions dialog

#1031152#5
Date:
2023-02-12 14:06:02 UTC
From:
To:
Dear Maintainer,


   * What led up to the situation?

     Launched system-config-printer as a regular user and attempted
     unlock dialog to add new printer to system.

     Using XFCE desktop

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     Closed dialog and ran system-config-printer from terminal and
     repeated steps.


   * What was the outcome of this action?

   The following error was thrown:

   Gtk-WARNING **: 08:47:30.475: Error acquiring permission: Failed to acquire permission for action-id org.opensuse.cupspkhelper.mechanism.all-edit

   * What outcome did you expect instead?

   elevated permissions dialog

   * Workaround

   running sudo system-config-printer from the terminal provides for
   normal operation

   * Additional information

   found similar bug from Fedora 26 that was resolved by installing
   policykit-1-gnome. This did not correct the issue.

#1031152#10
Date:
2023-04-15 04:20:31 UTC
From:
To:
Workaround suggested by original reporter (sudo) ineffective on sway due to Wayland security model.
#1031152#15
Date:
2023-04-20 08:00:54 UTC
From:
To:
On Sun, 12 Feb 2023 09:06:02 -0500 Alexis <z9060032017@gmail.com> wrote:
[...]
 >
 >
 > * What was the outcome of this action?
 >
 > The following error was thrown:
 >

 > Gtk-WARNING **: 08:47:30.475: Error acquiring permission: Failed to
acquire permission for action-id
org.opensuse.cupspkhelper.mechanism.all-edit

Do you have the cups-pk-helper package installed?

system-config-printer-common already recommends that package.

The definition of Recommends is: "This declares a strong, but not
absolute, dependency. The Recommends field should list packages that
would be found together with this one in all but unusual
installations.", so you should probably also install recommended packages.

Kind regards,

Laurent Bigonville

#1031152#20
Date:
2023-04-20 22:47:25 UTC
From:
To:
On my Debian 11 XFCE machine this works correctly. Make sure "PolicyKit
Authentication Agent" is checked under "Session and Startup" ->
"Application Autostart".

In Debian 12 under Sway the GNOME Authentication Agent segfaults, but I
will take this up under separate cover. I was able to work around the
issue for the moment by using lxpolkit for the authentication agent instead.

#1031152#25
Date:
2023-05-11 12:17:15 UTC
From:
To:
This unlikely to be a bug in system-config-printer as its delegate
authentication to polkit and cups-pk-helper.
Could you tell if you have cups-pk-helper installed and if running
"pkexec ls" from a graphical terminal works?

Cheers,
Alban

To other participants, you have to include the submitter email address
in the Cc of your email else the bug report only ends up on the web UI.
"PolicyKit
I
instead.