mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
services: gnome-desktop-service-type: Extend setuid-program-service-type.
* gnu/services/desktop.scm (gnome-setuid-programs): New variable. (gnome-desktop-service-type): Extend setuid-program-service-type with it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
abadd0f81f
commit
dd31263eb4
1 changed files with 10 additions and 0 deletions
|
@ -1379,6 +1379,14 @@ rules."
|
|||
;; in GNOME Boxes.
|
||||
("gnome-boxes" "spice-gtk")))))
|
||||
|
||||
(define (gnome-setuid-programs config)
|
||||
"Return the list of GNOME setuid programs."
|
||||
(let* ((gnome (gnome-desktop-configuration-gnome config))
|
||||
(spice-gtk (gnome-package gnome '("gnome-boxes" "spice-gtk"))))
|
||||
(map file-like->setuid-program
|
||||
(list (file-append spice-gtk
|
||||
"/libexec/spice-client-glib-usb-acl-helper")))))
|
||||
|
||||
(define gnome-desktop-service-type
|
||||
(service-type
|
||||
(name 'gnome-desktop)
|
||||
|
@ -1387,6 +1395,8 @@ rules."
|
|||
gnome-udev-rules)
|
||||
(service-extension polkit-service-type
|
||||
gnome-polkit-settings)
|
||||
(service-extension setuid-program-service-type
|
||||
gnome-setuid-programs)
|
||||
(service-extension profile-service-type
|
||||
(compose list gnome-desktop-configuration-gnome))))
|
||||
(default-value (gnome-desktop-configuration))
|
||||
|
|
Loading…
Reference in a new issue