[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/34: services: mate: Provide all the polkit actions.
From: |
guix-commits |
Subject: |
33/34: services: mate: Provide all the polkit actions. |
Date: |
Thu, 2 Apr 2020 10:07:35 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 9bdb0fee012cb8bae0080c3d398842cad612070a
Author: Ludovic Courtès <address@hidden>
AuthorDate: Thu Apr 2 16:04:12 2020 +0200
services: mate: Provide all the polkit actions.
* gnu/services/desktop.scm (mate-polkit-extension): New procedure.
(mate-desktop-service-type): Use it when extending POLKIT-SERVICE-TYPE.
---
gnu/services/desktop.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 16ee4d3..7300ff5 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -932,15 +932,23 @@ and extends polkit with the actions from
@code{gnome-settings-daemon}."
mate-desktop-configuration?
(mate-package mate-package (default mate)))
+(define (mate-polkit-extension config)
+ "Return the list of packages for CONFIG's MATE package that extend polkit."
+ (let ((mate (mate-package config)))
+ (map (lambda (input)
+ ((package-direct-input-selector input) mate))
+ '("mate-system-monitor" ;kill, renice processes
+ "mate-settings-daemon" ;date/time settings
+ "mate-power-manager" ;modify brightness
+ "mate-control-center" ;RandR, display properties
FIXME
+ "mate-applets")))) ;CPU frequency scaling
+
(define mate-desktop-service-type
(service-type
(name 'mate-desktop)
(extensions
(list (service-extension polkit-service-type
- (compose list
- (package-direct-input-selector
- "mate-settings-daemon")
- mate-package))
+ mate-polkit-extension)
(service-extension profile-service-type
(compose list
mate-package))))
- 25/34: gnu: engrampa: Update to 1.24.0., (continued)
- 25/34: gnu: engrampa: Update to 1.24.0., guix-commits, 2020/04/02
- 27/34: gnu: mate-system-monitor: Update to 1.24.0., guix-commits, 2020/04/02
- 32/34: gnu: mate-control-center: Fix file name in polkit rule., guix-commits, 2020/04/02
- 28/34: gnu: mate-polkit: Update to 1.24.0., guix-commits, 2020/04/02
- 29/34: gnu: mate-power-manager: Update to 1.24.1., guix-commits, 2020/04/02
- 23/34: gnu: mate-utils: Update to 1.24.0., guix-commits, 2020/04/02
- 21/34: gnu: mate-netbook: Update to 1.24.0., guix-commits, 2020/04/02
- 34/34: gnu: mate-session-manager: Actually build with elogind support., guix-commits, 2020/04/02
- 30/34: gnu: mate-themes: Update to 3.22.21., guix-commits, 2020/04/02
- 31/34: gnu: mate: Add glib:bin to propagated-inputs., guix-commits, 2020/04/02
- 33/34: services: mate: Provide all the polkit actions.,
guix-commits <=