[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/20: gnu: services: Add MATE desktop service.
From: |
Danny Milosavljevic |
Subject: |
20/20: gnu: services: Add MATE desktop service. |
Date: |
Sat, 30 Dec 2017 16:55:44 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit 431703ffd022e77c50e09ceedfa110a7eb7e4ee5
Author: ng0 <address@hidden>
Date: Sat Dec 30 22:52:54 2017 +0100
gnu: services: Add MATE desktop service.
* gnu/services/desktop.scm (<mate-desktop-configuration>,
mate-desktop-service-type): New variable.
(mate-desktop-service): New public variable.
* doc/guix.texi (Desktop Services): Document the service.
Signed-off-by: Danny Milosavljevic <address@hidden>
---
doc/guix.texi | 26 +++++++++++++++++++-------
gnu/services/desktop.scm | 33 +++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 7 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index ad018ff..2289d82 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -26,7 +26,7 @@ Copyright @copyright{} 2016 Ben address@hidden
Copyright @copyright{} 2016, 2017 Chris address@hidden
Copyright @copyright{} 2016, 2017 Efraim address@hidden
Copyright @copyright{} 2016 John address@hidden
-Copyright @copyright{} 2016 address@hidden
+Copyright @copyright{} 2016, 2017 address@hidden
Copyright @copyright{} 2016, 2017 Jan address@hidden
Copyright @copyright{} 2016 Julien address@hidden
Copyright @copyright{} 2016 Alex ter address@hidden
@@ -12106,7 +12106,7 @@ The @code{(gnu services desktop)} module provides
services that are
usually useful in the context of a ``desktop'' setup---that is, on a
machine running a graphical display server, possibly with graphical user
interfaces, etc. It also defines services that provide specific desktop
-environments like GNOME and XFCE.
+environments like GNOME, XFCE or MATE.
To simplify things, the module defines a variable containing the set of
services that users typically expect on a machine with a graphical
@@ -12131,9 +12131,10 @@ The @var{%desktop-services} variable can be used as
the @code{services}
field of an @code{operating-system} declaration (@pxref{operating-system
Reference, @code{services}}).
-Additionally, the @code{gnome-desktop-service} and
address@hidden procedures can add GNOME and/or XFCE to a
-system. To ``add GNOME'' means that system-level services like the
+Additionally, the @code{gnome-desktop-service},
address@hidden and @code{mate-desktop-service}
+procedures can add GNOME, XFCE and/or MATE to a system.
+To ``add GNOME'' means that system-level services like the
backlight adjustment helpers and the power management utilities are
added to the system, extending @code{polkit} and @code{dbus}
appropriately, allowing GNOME to operate with elevated privileges on a
@@ -12144,6 +12145,11 @@ not only adds the @code{xfce} metapackage to the
system profile, but it
also gives the Thunar file manager the ability to open a ``root-mode''
file management window, if the user authenticates using the
administrator's password via the standard polkit graphical interface.
+To ``add MATE'' means that @code{polkit} and @code{dbus} are extended
+appropriately, allowing MATE to operate with elevated privileges on a
+limited number of special-purpose system interfaces. Additionally,
+adding a service made by @code{mate-desktop-service} adds the MATE
+metapackage to the system profile.
@deffn {Scheme Procedure} gnome-desktop-service
Return a service that adds the @code{gnome} package to the system
@@ -12158,9 +12164,15 @@ file system as root from within a user session, after
the user has
authenticated with the administrator's password.
@end deffn
-Because the GNOME and XFCE desktop services pull in so many packages,
address@hidden {Scheme Procedure} mate-desktop-service
+Return a service that adds the @code{mate} package to the system
+profile, and extends polkit with the actions from
address@hidden
address@hidden deffn
+
+Because the GNOME, XFCE and MATE desktop services pull in so many packages,
the default @code{%desktop-services} variable doesn't include either of
-them by default. To add GNOME or XFCE, just @code{cons} them onto
+them by default. To add GNOME, XFCE orMATE, just @code{cons} them onto
@code{%desktop-services} in the @code{services} field of your
@code{operating-system}:
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 78530b3..64b999c 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2015 Mark H Weaver <address@hidden>
;;; Copyright © 2016 Sou Bunnbu <address@hidden>
;;; Copyright © 2017 Maxim Cournoyer <address@hidden>
+;;; Copyright © 2017 ng0 <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -42,6 +43,7 @@
#:use-module (gnu packages suckless)
#:use-module (gnu packages linux)
#:use-module (gnu packages libusb)
+ #:use-module (gnu packages mate)
#:use-module (guix records)
#:use-module (guix packages)
#:use-module (guix store)
@@ -82,6 +84,11 @@
gnome-desktop-service
gnome-desktop-service-type
+ mate-desktop-configuration
+ mate-desktop-configuration?
+ mate-desktop-service
+ mate-desktop-service-type
+
xfce-desktop-configuration
xfce-desktop-configuration?
xfce-desktop-service
@@ -817,6 +824,32 @@ rules."
and extends polkit with the actions from @code{gnome-settings-daemon}."
(service gnome-desktop-service-type config))
+;; MATE Desktop service.
+;; TODO: Add mate-screensaver.
+
+(define-record-type* <mate-desktop-configuration> mate-desktop-configuration
+ make-mate-desktop-configuration
+ mate-desktop-configuration
+ (mate-package mate-package (default mate)))
+
+(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))
+ (service-extension profile-service-type
+ (compose list
+ mate-package))))))
+
+(define* (mate-desktop-service #:key (config (mate-desktop-configuration)))
+ "Return a service that adds the @code{mate} package to the system profile,
+and extends polkit with the actions from @code{mate-settings-daemon}."
+ (service mate-desktop-service-type config))
+
;;;
;;; XFCE desktop service.
- 10/20: gnu: Add libfakekey., (continued)
- 10/20: gnu: Add libfakekey., Danny Milosavljevic, 2017/12/30
- 13/20: gnu: Add mate-utils., Danny Milosavljevic, 2017/12/30
- 04/20: gnu: caja: Add native-search-paths., Danny Milosavljevic, 2017/12/30
- 06/20: gnu: Add mate-calc., Danny Milosavljevic, 2017/12/30
- 05/20: gnu: Add atril., Danny Milosavljevic, 2017/12/30
- 17/20: gnu: Add mate-system-monitor., Danny Milosavljevic, 2017/12/30
- 19/20: gnu: mate: Add more packages., Danny Milosavljevic, 2017/12/30
- 12/20: gnu: Add mate-screensaver., Danny Milosavljevic, 2017/12/30
- 15/20: gnu: Add engrampa., Danny Milosavljevic, 2017/12/30
- 16/20: gnu: Add pluma., Danny Milosavljevic, 2017/12/30
- 20/20: gnu: services: Add MATE desktop service.,
Danny Milosavljevic <=
- 18/20: gnu: Add mate-polkit., Danny Milosavljevic, 2017/12/30