aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-10-11 22:21:50 +0200
committerLudovic Courtès <ludo@gnu.org>2017-10-11 23:00:46 +0200
commitb27ce4164a18e1451eb1d5edc189331fe6df34c1 (patch)
treedee585c7e44b80b9dce4c2d762a0e99f4aead704
parent22345a8ed757b67a6d6de1c1c45d6d6f35242b34 (diff)
downloadpatches-b27ce4164a18e1451eb1d5edc189331fe6df34c1.tar
patches-b27ce4164a18e1451eb1d5edc189331fe6df34c1.tar.gz
services: gnome: Register more polkit actions.
This should allow more operations such as changing the system date and time via the Control Center (reported at <https://lists.gnu.org/archive/html/help-guix/2016-09/msg00059.html>), performing "file operations" via gvfs, and interacting with processes using the System Monitor. * gnu/services/desktop.scm (gnome-polkit-settings): New procedure. (gnome-desktop-service-type): Use it in POLKIT-SERVICE-TYPE extension.
-rw-r--r--gnu/services/desktop.scm16
1 files changed, 12 insertions, 4 deletions
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 527a3101cf..4b5100c27a 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -780,15 +780,23 @@ accountsservice web site} for more information."
gnome-desktop-configuration
(gnome-package gnome-package (default gnome)))
+(define (gnome-polkit-settings config)
+ "Return the list of GNOME dependencies that provide polkit actions and
+rules."
+ (let ((gnome (gnome-package config)))
+ (map (lambda (name)
+ ((package-direct-input-selector name) gnome))
+ '("gnome-settings-daemon"
+ "gnome-control-center"
+ "gnome-system-monitor"
+ "gvfs"))))
+
(define gnome-desktop-service-type
(service-type
(name 'gnome-desktop)
(extensions
(list (service-extension polkit-service-type
- (compose list
- (package-direct-input-selector
- "gnome-settings-daemon")
- gnome-package))
+ gnome-polkit-settings)
(service-extension profile-service-type
(compose list
gnome-package))))))