From debbugs-submit-bounces@debbugs.gnu.org Thu May 06 16:25:00 2021 Received: (at submit) by debbugs.gnu.org; 6 May 2021 20:25:00 +0000 Received: from localhost ([127.0.0.1]:39488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lekYO-0007eO-Gx for submit@debbugs.gnu.org; Thu, 06 May 2021 16:25:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:34584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lekYM-0007eI-VQ for submit@debbugs.gnu.org; Thu, 06 May 2021 16:24:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lekYM-0005PY-I0 for bug-guix@gnu.org; Thu, 06 May 2021 16:24:58 -0400 Received: from andre.telenet-ops.be ([2a02:1800:120:4::f00:15]:40840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lekYK-0003PC-5d for bug-guix@gnu.org; Thu, 06 May 2021 16:24:58 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 1YQr250020mfAB401YQr8R; Thu, 06 May 2021 22:24:51 +0200 Message-ID: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> Subject: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) From: Maxime Devos To: bug-guix@gnu.org Date: Thu, 06 May 2021 22:24:43 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-TdMmiUY/F/MW0AxiIe4N" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1620332691; bh=5DKRHfDNBg5qR2CeEWNOsoxbqEphs5lvzTG/SU2S0R8=; h=Subject:From:To:Date; b=LSv/1L3jMeH4oZJ1GP7kQ3gS9kkkymOVXPDd7KvY1E6kBaaXt2M6/0Gy7YXYp8pep Tl4e74G4rBQiC8+/a5BwcpoYqjxQAHf2IfEiLB6PCZXbmBcT9piBQU6J+/Mp9KBsKb +hBvDhpnmrVYWJ4EGZlv84fhCowbu3Dy9r7dn3cgYe+hELqW+DCNtusMNpk6hn9+rY ieSHPaMVSznU8Ax7AVZmQaJT7ozYH+0EFd55ylqQdg0E9kRdiH6Ouv6kt/+/OWpxTY ncW/bT4VDqN7YcC9oAECsIDeK+62oVZ5rQY+L/9YhfeURlEMRIIkJqxJny1uJx2YJ+ V2sUjWVAtILEg== Received-SPF: pass client-ip=2a02:1800:120:4::f00:15; envelope-from=maximedevos@telenet.be; helo=andre.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-TdMmiUY/F/MW0AxiIe4N Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Related to: https://issues.guix.gnu.org/22952 On a mate desktop (mate-desktop-service-type). FN-F9, FN-F10 (binded to =E2=80=98decrease brightness=E2=80=99 and =E2=80= =98increase brightness=E2=80=99): > Authentication is needed to run '/gnu/store/mp33h4vqdw0scdkjj0v6c3gima9wz= 8lm-mate-power-manager-1.24.2/sbin/mate-power-backlight-helper' as the supe= r user. Contents of /etc/polkit-1/actions/org.mate.power.policy: [...] battery Modify the laptop brightness Authentication is required to modify the laptop brightness no no yes /gnu/store/zk4kb4= 437032swahywmgyzn55b5w5wj8-mate-power-manager-1.24.2/sbin/mate-power-backli= ght-help> [...] FWIW, the following works as expected (no error message), using the store p= ath in .policy: $ pkexec /gnu/store/zk4kb4437032swahywmgyzn55b5w5wj8-mate-power-manager-1.2= 4.2/sbin/mate-power-backlight-helper --set-brightness=3D300 Maybe MATE is trying the equivalent of "pkexec /wrong/store/path/mate-power= -backlight-helper --etcetera" instead of referring to the action by name org.mate.power.backlight-helper. Note the store path is different. Now try something different $ which mate-power-backlight-helper > /run/current-system/profile/sbin/mate-power-backlight-helper $ ls -l /run/current-system/profile/sbin/mate-power-backlight-helper > /gnu/store/ffqhy4xdpzkg06rlq76zrbwn8v3rqgw9-mate-1.24.1/sbin/mate-power-b= acklight-helper Now we have three different store paths so far! Not sure what the proper way to resolve this, and what causes the three dif= ferent store paths, but one way to resolve this would be referring to /run/current-system/profi= le/sbin/mate-power-backlight-helper in org.mate.power.policy (untested!). It looks like there could very well be be similar issues in (unverified): * /etc/polkit-1/actions/org.gnome.controlcenter.remote-login-helper.policy * /etc/polkit-1/actions/org.gnome.gnome-system-monitor.policy * /etc/polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy * /etc/polkit-1/actions/org.gnome.settings-daemon.plugins.wacom.policy * grep for /gnu/store/ in /etc/polkit-1/actions/*.policy Greetings, Maxime. --=-TdMmiUY/F/MW0AxiIe4N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYJRQixccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tQ5AP9f0eQ7QbmZyyYbxsWTg3nG+aWP FyDRRJgD1g0lHotoWQEAk9VioOFO+RCktwrY+qSWh5sva9etg4CMVSGlNGArewk= =z1Gt -----END PGP SIGNATURE----- --=-TdMmiUY/F/MW0AxiIe4N-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 06 17:02:35 2021 Received: (at 48265) by debbugs.gnu.org; 6 May 2021 21:02:36 +0000 Received: from localhost ([127.0.0.1]:39646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lel8l-00089M-MI for submit@debbugs.gnu.org; Thu, 06 May 2021 17:02:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lel8k-00089D-In for 48265@debbugs.gnu.org; Thu, 06 May 2021 17:02:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56002) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lel8e-0000Ow-G4; Thu, 06 May 2021 17:02:28 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37138 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1lel8e-0002O2-8s; Thu, 06 May 2021 17:02:28 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: bug#48265: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) References: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 06 May 2021 23:02:25 +0200 In-Reply-To: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> (Maxime Devos's message of "Thu, 06 May 2021 22:24:43 +0200") Message-ID: <87a6p7d19a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48265 Cc: 48265@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi! Maxime Devos skribis: > FWIW, the following works as expected (no error message), using the store= path in .policy: > $ pkexec /gnu/store/zk4kb4437032swahywmgyzn55b5w5wj8-mate-power-manager-1= .24.2/sbin/mate-power-backlight-helper --set-brightness=3D300 > Maybe MATE is trying the equivalent of "pkexec /wrong/store/path/mate-pow= er-backlight-helper --etcetera" instead > of referring to the action by name org.mate.power.backlight-helper. > > Note the store path is different. Now try something different > > $ which mate-power-backlight-helper >> /run/current-system/profile/sbin/mate-power-backlight-helper > $ ls -l /run/current-system/profile/sbin/mate-power-backlight-helper >> /gnu/store/ffqhy4xdpzkg06rlq76zrbwn8v3rqgw9-mate-1.24.1/sbin/mate-power-= backlight-helper These are different versions (1.24.2 vs. 1.24.1). But that=E2=80=99s just = two store file names; where=E2=80=99s the third one? Isn=E2=80=99t the problem that you reconfigured and so there=E2=80=99s now = a mismatch between the polkit rule in effect, which expects 1.24.1 (say), and the version you=E2=80=99re running? (FWIW brightness change works in GNOME.) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 06 17:19:10 2021 Received: (at 48265) by debbugs.gnu.org; 6 May 2021 21:19:10 +0000 Received: from localhost ([127.0.0.1]:39774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lelOo-0008Od-7o for submit@debbugs.gnu.org; Thu, 06 May 2021 17:19:10 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:59100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lelOl-0008OW-49 for 48265@debbugs.gnu.org; Thu, 06 May 2021 17:19:08 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by albert.telenet-ops.be with bizsmtp id 1ZK5250070mfAB406ZK5fd; Thu, 06 May 2021 23:19:05 +0200 Message-ID: <124d265a6cb040aabe8ee5240d2d2f6e8c6ed34f.camel@telenet.be> Subject: Re: bug#48265: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Date: Thu, 06 May 2021 23:18:59 +0200 In-Reply-To: <87a6p7d19a.fsf@gnu.org> References: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> <87a6p7d19a.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-vljmpcA2xQayjICafNf2" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1620335945; bh=FKvg5uyrscriiBVog2XoBqDIH9jGevd9DWNxIGc8NbA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=LeKaL40yfHX04qr0E0OPhcjbxJ2ASP0l0o3IyxPVgUEUz2vI5WfAcvAZowi+KnY3r Dl756H55zgeuXsrKEBjtfoYgGHY+4TaagqxXpGUgze9L5BbGFXdS4K78S2HxzUdn55 zqpo8f/MY40Ip4AasLo2m4C0wYe7ejkoONWQKvt+QfPzmhTnktipNHxsZTntO8xFbj 1mcUg9RHrIybuHTLiFgHbTNuz9AUtJ++eXE+HPNv3xQtSnTcSW03Y/+MZVN1nGA0Rt MYRQvobuUO7j4OEbS0o0WrinpYWqTYyEuTE5z5HzGNi6t4fOp5cgw3bKd+0DjKfroO rHHDqjQj0q5/w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48265 Cc: 48265@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-vljmpcA2xQayjICafNf2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op do 06-05-2021 om 23:02 [+0200]: > Hi! >=20 > Maxime Devos skribis: >=20 > > FWIW, the following works as expected (no error message), using the sto= re path in .policy: > > $ pkexec /gnu/store/zk4kb4437032swahywmgyzn55b5w5wj8-mate-power-manager= -1.24.2/sbin/mate-power-backlight-helper --set-brightness=3D300 > > Maybe MATE is trying the equivalent of "pkexec /wrong/store/path/mate-p= ower-backlight-helper --etcetera" instead > > of referring to the action by name org.mate.power.backlight-helper. > >=20 > > Note the store path is different. Now try something different > >=20 > > $ which mate-power-backlight-helper > > > /run/current-system/profile/sbin/mate-power-backlight-helper > > $ ls -l /run/current-system/profile/sbin/mate-power-backlight-helper > > > /gnu/store/ffqhy4xdpzkg06rlq76zrbwn8v3rqgw9-mate-1.24.1/sbin/mate-pow= er-backlight-helper >=20 > These are different versions (1.24.2 vs. 1.24.1). I didn't notice that. Also, this makes the problem even weirder. Were does the version mismatch come from? I would try to run "guix gc --referrers /gnu/store/PATH-WITH-POWER-BACKLIGH= T-HELPER" as that might shed some light on the matter, but I don't have a lot of free= time currently, so I'm hoping someone else fixes the bug first :p. > But that=E2=80=99s just two store file names; where=E2=80=99s the third o= ne? 1.: Authentication is needed to run /gnu/store/mp33h4vqdw0scdkjj0v6c3gima9wz8lm-mate-power-manager-1.24.2/s= bin/mate-power-backlight-helper [...] 2.: (in org.mate.power.policy) /gnu/store/zk4kb4437032swahywmgyzn55b5w5wj8-mate-power-manager-1.24.2/s= bin/mate-power-backlight-helper 3.: $ ls -l /run/current-system/profile/sbin/mate-power-backlight-helper > /gnu/store/ffqhy4xdpzkg06rlq76zrbwn8v3rqgw9-mate-1.24.1/sbin/mate-pow= er-backlight-helper > Isn=E2=80=99t the problem that you reconfigured and so there=E2=80=99s no= w a mismatch > between the polkit rule in effect, which expects 1.24.1 (say), and the > version you=E2=80=99re running? I've had this problem for a month, I think? I'll try to confirm / falsify tomorrow. FWIW, I don't see any mate stuff in my use profile. Greetings, Maxime. --=-vljmpcA2xQayjICafNf2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYJRdQxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kR4AQD9VCKJPeeNXDJKogCybqZeS7JT jqnp2Hep+XoJt6Wn9AEA/Hn0TPaueNIjq4uznug3Mjzjei91JWt/M8LRDV3cBwY= =DJEQ -----END PGP SIGNATURE----- --=-vljmpcA2xQayjICafNf2-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 07 02:38:32 2021 Received: (at 48265) by debbugs.gnu.org; 7 May 2021 06:38:32 +0000 Received: from localhost ([127.0.0.1]:42081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leu88-0006pg-9F for submit@debbugs.gnu.org; Fri, 07 May 2021 02:38:32 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:44414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leu86-0006pa-1r for 48265@debbugs.gnu.org; Fri, 07 May 2021 02:38:31 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 1ieT2500p0mfAB401ieTST; Fri, 07 May 2021 08:38:28 +0200 Message-ID: <09353b1319b47b42cb28a477af12740b9175d940.camel@telenet.be> Subject: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) From: Maxime Devos To: 48265@debbugs.gnu.org Date: Fri, 07 May 2021 08:38:27 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1620369508; bh=xw9D+9ER/bDHEuYhPGsp+2D8ortX63+k5Az60XKkiHM=; h=Subject:From:To:Date; b=QyLCRnEY1Y00o8/ff5SFuSkUK0H9ugIAl/y60SNqPqixL7Zo2qkAxdaJD2oNArbYM R232EHsn9KBH1Nfh5A6VIZSZO4yFPm6d4avuVkWtRf8xzKAXbTcyJXNk0vAeU4cIhc fTrTpPzrf34hGbviTQ4Elx0ARJMcOYGdePE7tRa9H6kvBMBohWUAX53WjiWckp1OuD UknlWvOQBmk/xbIvWx9ljgq4uRiz9CAGBJMVQkSfbcFr2brBL4lZuJMEiUGxuBYcSq /RTGbywnrdtnHIcLbmDMEbT5Yza0l/jKXpyuzJp5u9UJr4c4B1VBDuClh3FzCpCQ9n 2knDceRpBLTYg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48265 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Isn’t the problem that you reconfigured and so there’s now a mismatch >> between the polkit rule in effect, which expects 1.24.1 (say), and the >> version you’re running? > I've had this problem for a month, I think? I'll try to confirm / falsify > tomorrow. FWIW, I don't see any mate stuff in my use profile. I booted my system, and the issue is still present. Greetings, Maxime. From debbugs-submit-bounces@debbugs.gnu.org Fri May 07 02:49:07 2021 Received: (at 48265) by debbugs.gnu.org; 7 May 2021 06:49:07 +0000 Received: from localhost ([127.0.0.1]:42130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leuIN-0006wY-FF for submit@debbugs.gnu.org; Fri, 07 May 2021 02:49:07 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:32866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leuIL-0006wS-C7 for 48265@debbugs.gnu.org; Fri, 07 May 2021 02:49:06 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 1ip32500K0mfAB401ip3KT; Fri, 07 May 2021 08:49:04 +0200 Message-ID: <29bc3152e6929b7bde9b6b9a3d44e250fd4c5019.camel@telenet.be> Subject: Re: bug#48265: mate-power-backlight-helper is referred to by store name instead of polkit action (IIUC) From: Maxime Devos To: 48265@debbugs.gnu.org Date: Fri, 07 May 2021 08:48:57 +0200 In-Reply-To: <09353b1319b47b42cb28a477af12740b9175d940.camel@telenet.be> References: <28db052034ca1e3029bb3dc0aa9f87de2af6bdec.camel@telenet.be> <09353b1319b47b42cb28a477af12740b9175d940.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-+tXu3HrfEPzq4DiIDC0N" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1620370144; bh=25/LeuYrVZC96KQofkqPO8LbGR8KT/WEeMgCYu5qOAs=; h=Subject:From:To:Date:In-Reply-To:References; b=bFljXZmnHAypDJu3USFPBup+DcKfFmc2PB1xE9WZJ9lkV2rKSJ5NDw/CN/baaoJH4 /JSe0Fhc25qOxDixr4uehozLCwC/v1AaCjN1JzywjpWILzxdKPJpbhvlwszlR0i1EA 0oDuSkrTHRomT3+77Ufo1LRWWxpxSvKilomLVEnMD/aXkuxW1F+aNnfcmQ5IrgJc7o +1s0tz0HlWY+59aMPPd8fbNOCoeQExWgXl8XS/n6crGEhxBT200d9nkeROX0VlVuxQ MedA5auPM57uB+MIY7nV66cxJOHmBViDcUdOxEVCPfj6dwFaLAhG0zcwMe6QbMOnJj eSP+S6jqa39QA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48265 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-+tXu3HrfEPzq4DiIDC0N Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It looks like my suspicion that "mate-power-backlight-helper" is referred t= o by absolute file name instead of by its polkit action is correct: Excerpt from src/gpm-brightness.c (https://git.mate-desktop.org/mate-power-manager/tree/src/gpm-brightness.c) > static gboolean > gpm_brightness_helper_set_value (const gchar *argument, gint value) > { > [...] > /* get the data */ > command =3D g_strdup_printf ("pkexec " SBINDIR "/mate-power-backl= ight-helper --%s %i", argument, value); > ret =3D g_spawn_command_line_sync (command, NULL, NULL, &exit_sta= tus, &error); > [...] > } Next step: look at the GNOME source code, maybe it does things differently. --=-+tXu3HrfEPzq4DiIDC0N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYJTi2RccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hK9AQDiIuAJ8mqyIDGp28uS52w3h3s/ 9SBSCvhiTyzQ/kYyNQEA3LnL06GKP40IGH9hi9LhkziMgLNjZVQgdrdcqRLNXQM= =RkEG -----END PGP SIGNATURE----- --=-+tXu3HrfEPzq4DiIDC0N-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 06 14:23:03 2025 Received: (at 48265) by debbugs.gnu.org; 6 Jun 2025 18:23:03 +0000 Received: from localhost ([127.0.0.1]:44984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNbiZ-0000Er-4Q for submit@debbugs.gnu.org; Fri, 06 Jun 2025 14:23:03 -0400 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]:27259) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNbiV-0000E0-GZ for 48265@debbugs.gnu.org; Fri, 06 Jun 2025 14:23:01 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1749234175; cv=none; d=zohomail.com; s=zohoarc; b=KBmp+ZD+/zjqwml/DKpOcIsGvdCUMmu12HC2z6fc4y2DU3wXQfZkPsJHeXt+1ZjRDanFLQ9ZwD7Od/Jw6bghxtrpKici79EL7LhcJstAcJrxhOSXsrCpX7DrmoLlf0EUcMnKVMG0l+afL3zp5MB8zUuAJ1+6zkb4attbLWD56ug= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749234175; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=HZ3+aojwFUkJJ/FjwHbq4DXrqrbDe4YYSs+zRQYpME8=; b=KW0C53aViNNXCzfPldajobSHtwmzt7fxwxIBK19oRPX0hlJ8fOGUwq7MjdkprPbgBvKcWKnpLD3owMgfCMs9okgq9TDE2f+Ag6IrBR0THJHm/cBxAQUabNDBocDkj0kF7OpFQcD5r+lSXlHrjFaCv0sQX4SgtvbbHLrXGQ9LMIU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=contrapunctus.net; spf=pass smtp.mailfrom=league@contrapunctus.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1749234175; s=zoho; d=contrapunctus.net; i=league@contrapunctus.net; h=Message-ID:Date:Date:MIME-Version:From:From:To:To:Subject:Subject:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=HZ3+aojwFUkJJ/FjwHbq4DXrqrbDe4YYSs+zRQYpME8=; b=nlMBx2aUM3yF7VVva+ZAWzp4EkO8FJARkqmg7r8YO+jgupflVjyQ8eP/MXoYE+Vq Esqy3xwHjlwsJPlAAfEtFpdT00vIctUzYk//w4d2MZTkukVZpd5Ke4ys9N/6UavuqAi 6/BQlmavavjBwQ6IxAdfs2cM2Kh5zMTX7df5YmThtBFFJZfj8TRA6xZBzBEeRRUFTqH ta5W4Em19H4h01/54MdGMalvX8++lBdpRfEj2lXUU9sm2o6CMEAhVNUY/i+fkNfDnzf voFojH64iLRIXdo8C62xuVT/Ghgb3ZZTOmWaukDc32Ra8Y3ms2NG8egsXZei4MEhzoN +sFNvEAymw== Received: by mx.zohomail.com with SMTPS id 1749234173640214.43368423591767; Fri, 6 Jun 2025 11:22:53 -0700 (PDT) Message-ID: Date: Fri, 6 Jun 2025 14:22:52 -0400 MIME-Version: 1.0 User-Agent: Icedove Daily From: Christopher League Content-Language: en-US To: 48265@debbugs.gnu.org Subject: Authentication is needed to run mate-power-backlight-helper Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48265 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, after a recent update, I am having the same authentication issue with the brightness helper on the Mate desktop: > Authentication is needed to run > /gnu/store/ra8zy...-mate-power-manager-1.28.1/sbin/ > mate-power-backlight-helper as the super user. As noted previously on this bug report, the polkit org.mate.power.policy file refers to an absolute store path. But I think ultimately the problem may have to do with the fact that mate-power-manager APPEARS TWICE in the system closure: $ guix gc -R /gnu/store/2zf16...-system | grep mate-power /gnu/store/ra8zy...-mate-power-manager-1.28.1 /gnu/store/a14gf...-mate-power-manager-1.28.1 The brightness function keys and the power-manager itself attempt to invoke the 'ra8zy' path (and it's also in the profile's sbin), but the polkit policy file permits only the 'a14gf' path: $ readlink -f (which mate-power-backlight-helper) /gnu/store/ra8zy...-mate-power-manager-1.28.1/sbin/mate-power-backlight-helper $ pkexec /gnu/store/a14gf...-mate-power-manager-1.28.1/sbin/\ mate-power-backlight-helper --set-brightness 340 # Works perfectly $ pkexec /gnu/store/ra8zy...-mate-power-manager-1.28.1/sbin/\ mate-power-backlight-helper --set-brightness 340 # Authentication error, same as pressing brightness buttons Looking at gnu/services/desktop.scm and gnu/packages/mate.scm, it's unclear to me why mate-polkit-extension would end up with a different hash for mate-power-manager than the profile does. The effect may be reproducible just from packages, without needing to troubleshoot the services or system. What happens if we build mate-power-manager vs the mate union package: $ guix build mate-power-manager /gnu/store/a14gf...-mate-power-manager-1.28.1 That's the one in polkit. $ guix gc -R (guix build mate) | grep mate-power /gnu/store/ra8zy...-mate-power-manager-1.28.1 And that's the one in the profile. Why are they different? Does it have to do with using union-build? Apparently a similar duplication happens with xfce, though I don't know if it leads to the same authentication errors: $ guix gc -R /gnu/store/2zf16...-system | grep xfce4-power /gnu/store/8mqna...-xfce4-power-manager-4.20.0 /gnu/store/jrflf...-xfce4-power-manager-4.20.0 The exact store paths used in these examples should be reproducible from the following minimal configuration and relatively recent commit: ;;; BEGIN configuration.scm (use-modules (gnu bootloader) (gnu bootloader grub) (gnu system file-systems) (gnu services desktop)) (operating-system (host-name "mate-power-bug") (bootloader (bootloader-configuration (bootloader grub-bootloader))) (file-systems (cons (file-system (mount-point "/") (device "/dev/sda1") (type "ext4")) %base-file-systems)) (services (cons (service mate-desktop-service-type) %desktop-services))) ;; END configuration.scm $ guix time-machine -q --commit=ed5988f0d2cf14e3cc35a32e6ad91d7cbf535e2f\ -- system build configuration.scm /gnu/store/2zf16...-system