FS#70158 - [liblxqt] Polkit policy for backlight references incorrect helper path
Attached to Project:
Community Packages
Opened by Nautilus Mortanian (mortanian) - Thursday, 25 March 2021, 13:22 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 09 May 2023, 03:36 GMT
Opened by Nautilus Mortanian (mortanian) - Thursday, 25 March 2021, 13:22 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 09 May 2023, 03:36 GMT
|
Details
Description:
Policy in /usr/share/polkit-1/actions/org.lxqt.backlight.pkexec.policy contains an annotation with key org.freedesktop.policykit.exec.path and a value of /usr/bin/lxqt-backlight_backend, but lxqt-config-brightness runs "pkexec /bin/lxqt-backlight_backend" instead which does not cause this policy to validate. Additional info: * Package version 0.16.0-1 Steps to reproduce: Attempt to modify backlight intensity with keyboard shortcut or lxqt configuration utility. Rather than honoring the policykit rules, pkexec requests sudo authentication to proceed. (Pressing Brightness+ several times impatiently will cause several sudo request dialogues to open) Altering the policy file to refer to the same path as called by lxqt-config-brightness solves this issue for me and brightness controls work as expected without requiring authorization. |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 09 May 2023, 03:36 GMT
Reason for closing: No response
Additional comments about closing: Also, cannot repro i.e. altering brightness via the settings config seems to work fine.
Tuesday, 09 May 2023, 03:36 GMT
Reason for closing: No response
Additional comments about closing: Also, cannot repro i.e. altering brightness via the settings config seems to work fine.
[1] https://github.com/lxqt/liblxqt/blob/0.16.0/lxqtbacklight/linux_backend/driver/libbacklight_backend.c#L102