mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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.
This commit is contained in:
parent
8a5cdc078c
commit
9bdb0fee01
1 changed files with 12 additions and 4 deletions
|
@ -932,15 +932,23 @@ (define-record-type* <mate-desktop-configuration> mate-desktop-configuration
|
|||
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))))
|
||||
|
|
Loading…
Reference in a new issue