[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/29: services: Extend polkit capabilities of gnome-desktop-service.
From: |
guix-commits |
Subject: |
05/29: services: Extend polkit capabilities of gnome-desktop-service. |
Date: |
Sat, 24 Feb 2024 01:29:58 -0500 (EST) |
lilyp pushed a commit to branch gnome-team
in repository guix.
commit acaa89ae427074d96f47c7cc678712d09d9822f1
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Fri Feb 16 13:08:11 2024 +0100
services: Extend polkit capabilities of gnome-desktop-service.
As with our udev extension, this makes it so that all inputs are considered
modulo a new ignorelist.
* gnu/services/desktop.scm (gnome-desktop-configuration): Add
polkit-ignorelist.
(gnome-polkit-settings): Adjust accordingly.
---
gnu/services/desktop.scm | 44 +++++++++++++++++++++++++++-----------------
1 file changed, 27 insertions(+), 17 deletions(-)
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 0631571c49..b3c0f4fc41 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -1425,7 +1425,12 @@ GNOME users.")
"A list of regular expressions denoting udev rules or hardware file names
provided by any package that should not be installed. By default, every udev
rule and hardware file specified by any package referenced in the other fields
-are installed."))
+are installed.")
+ (polkit-ignorelist
+ (list-of-strings '())
+ "A list of regular expressions denoting polkit rules provided by any package
+that should not be installed. By default, every polkit rule added by any
package
+referenced in the other fields are installed."))
(define (gnome-package gnome name)
"Return the package NAME among the GNOME package inputs. NAME can be a
@@ -1467,22 +1472,27 @@ dependencies by filtering out the ignorelist."
(define (gnome-polkit-settings config)
"Return the list of GNOME dependencies that provide polkit actions and
rules."
- (let ((gnome (gnome-desktop-configuration-gnome config))
- (shell (gnome-desktop-configuration-shell config)))
- (or (any (match-lambda ((and pkg (= package-name "gvfs")) (list pkg))
- (_ #f))
- shell)
- (and (maybe-value-set? gnome)
- (gnome-packages gnome
- '("gnome-settings-daemon"
- "gnome-control-center"
- "gnome-system-monitor"
- "gvfs")))
- (raise
- (condition
- (&error-location
- (location (gnome-desktop-configuration-source-location config)))
- (&message (message (G_ "Missing gvfs"))))))))
+ (list
+ (computed-file
+ "gnome-polkit-settings"
+ (with-imported-modules
+ (source-module-closure '((guix build utils)
+ (guix build union)))
+ #~(let ((output (string-append #$output "/share/polkit-1")))
+ (use-modules (guix build utils)
+ (guix build union))
+ (mkdir-p (dirname output))
+ (union-build output
+ (search-path-as-list
+ (list "share/polkit-1")
+ (list #$@(gnome-profile config)))
+ #:create-all-directories? #t)
+ (for-each
+ (lambda (pattern)
+ (for-each
+ delete-file-recursively
+ (find-files output pattern)))
+ (list #$@(gnome-desktop-configuration-polkit-ignorelist
config))))))))
(define (gnome-profile config)
"Return a list of packages propagated through CONFIG."
- branch gnome-team updated (622df12ef3 -> 06d01c610e), guix-commits, 2024/02/24
- 01/29: gnu: Split gnome into more meta-packages., guix-commits, 2024/02/24
- 04/29: services: Extend udev capabilities of gnome-desktop-service., guix-commits, 2024/02/24
- 03/29: services: Modularise gnome-desktop-configuration., guix-commits, 2024/02/24
- 07/29: gnu: Deprecate gnome meta-package., guix-commits, 2024/02/24
- 02/29: gnu: gnome: Add core packages for GNOME 44., guix-commits, 2024/02/24
- 05/29: services: Extend polkit capabilities of gnome-desktop-service.,
guix-commits <=
- 06/29: services: desktop: Remove unused imports., guix-commits, 2024/02/24
- 12/29: gnu: rygel: Update to 0.42.5., guix-commits, 2024/02/24
- 14/29: gnu: atkmm@2.28: Update to 2.28.4., guix-commits, 2024/02/24
- 20/29: gnu: epiphany: Update to 44.8., guix-commits, 2024/02/24
- 13/29: gnu: vte: Update to 0.72.4., guix-commits, 2024/02/24
- 18/29: gnu: gcr@3: Update to 3.41.2., guix-commits, 2024/02/24
- 22/29: gnu: mutter: Update to 44.9., guix-commits, 2024/02/24
- 25/29: gnu: folks: Update to 0.15.7., guix-commits, 2024/02/24
- 28/29: gnu: gdm: Wrap inputs to enable accessibility settings., guix-commits, 2024/02/24
- 08/29: gnu: gnome: Update synopsis and description., guix-commits, 2024/02/24