From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:37560) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKLo3-0000hj-6A for guix-patches@gnu.org; Tue, 15 Oct 2019 08:20:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKLo1-0003YP-WA for guix-patches@gnu.org; Tue, 15 Oct 2019 08:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iKLo1-0003YL-St for guix-patches@gnu.org; Tue, 15 Oct 2019 08:20:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iKLo1-0001uJ-MK for guix-patches@gnu.org; Tue, 15 Oct 2019 08:20:01 -0400 Subject: [bug#37764] [PATCH] services: xfce: Add xfce4-power-manager to polkit settings. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:37476) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKLmz-0008L5-Ch for guix-patches@gnu.org; Tue, 15 Oct 2019 08:18:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKLmy-0003Jz-26 for guix-patches@gnu.org; Tue, 15 Oct 2019 08:18:57 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47149) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKLmx-0003JW-LP for guix-patches@gnu.org; Tue, 15 Oct 2019 08:18:56 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id AF30A21DC7 for ; Tue, 15 Oct 2019 08:18:53 -0400 (EDT) Mime-Version: 1.0 Message-Id: <8465d5c7-af94-4e51-8874-8eab11492f5b@www.fastmail.com> Date: Tue, 15 Oct 2019 05:17:54 -0700 From: "David Wilson" Content-Type: multipart/mixed; boundary=e2524dda58224e6b8f2b33da4ed6846e List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37764@debbugs.gnu.org --e2524dda58224e6b8f2b33da4ed6846e Content-Type: multipart/alternative; boundary=adb64c58a52b4177879bc2b846ea0160 --adb64c58a52b4177879bc2b846ea0160 Content-Type: text/plain Hi all! This patch fixes an issue in the XFCE desktop service configuration which causes the polkit action for xfce4-power-manager to not be installed in /etc/polkit-1/actions. The lack of this file causes the user to be prompted for administrator credentials when they attempt to use their laptop's screen brightness keys. The fix is to use a similar pattern to the GNOME service and add an 'xfce-polkit-settings' procedure which generates the list of XFCE packages that contain polkit actions to install. Now that this list contains 'xfce4-power-manager`, the polkit file 'org.xfce.power.policy' is installed correctly and the screen brightness keys work as intended. Thanks! David --adb64c58a52b4177879bc2b846ea0160 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi all!

This patch fixes an issue in the XF= CE desktop service configuration which causes the polkit action for xfce= 4-power-manager to not be installed in /etc/polkit-1/actions.  The = lack of this file causes the user to be prompted for administrator crede= ntials when they attempt to use their laptop's screen brightness keys.

The fix is to use a similar pattern to the GNOME service a= nd add an 'xfce-polkit-settings' procedure which generates the list of X= FCE packages that contain polkit actions to install.  Now that this= list contains 'xfce4-power-manager`, the polkit file 'org.xfce.power.po= licy' is installed correctly and the screen brightness keys work as inte= nded.

Thanks!
=
David
--adb64c58a52b4177879bc2b846ea0160-- --e2524dda58224e6b8f2b33da4ed6846e Content-Disposition: attachment;filename="0001-services-xfce-Add-xfce4-power-manager-to-polkit-sett.patch" Content-Type: text/x-patch; name="0001-services-xfce-Add-xfce4-power-manager-to-polkit-sett.patch" Content-Transfer-Encoding: BASE64 RnJvbSBhYjQ1ODcyNTQ2ZDM0YjY5Njh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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGFja2FnZS1kaXJlY3QtaW5w dXQtc2VsZWN0b3IKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ0 aHVuYXIiKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB4ZmNlLXBh Y2thZ2UpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICB4ZmNlLXBvbGtpdC1zZXR0 aW5ncykKICAgICAgICAgICAoc2VydmljZS1leHRlbnNpb24gcHJvZmlsZS1zZXJ2aWNlLXR5 cGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbXBvc2UgbGlzdCB4ZmNlLXBh Y2thZ2UpKSkpCiAgICAoZGVmYXVsdC12YWx1ZSAoeGZjZS1kZXNrdG9wLWNvbmZpZ3VyYXRp b24pKQotLSAKMi4yMy4wCgo= --e2524dda58224e6b8f2b33da4ed6846e--