From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLAuj-0007k7-I4 for guix-patches@gnu.org; Mon, 29 Apr 2019 14:22:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLAui-0002Lo-Kn for guix-patches@gnu.org; Mon, 29 Apr 2019 14:22:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54367) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLAui-0002Lf-Em for guix-patches@gnu.org; Mon, 29 Apr 2019 14:22:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLAug-000429-BA for guix-patches@gnu.org; Mon, 29 Apr 2019 14:22:02 -0400 Subject: [bug#35493] [PATCH 3/3] doc: Document 'display' and 'vt' fields of 'slim-configuration'. References: <871s1kad42.fsf@GlaDOS.home> In-Reply-To: <871s1kad42.fsf@GlaDOS.home> Resent-Message-ID: From: Diego Nicola Barbato Date: Mon, 29 Apr 2019 20:20:57 +0200 Message-ID: <87wojc8ygm.fsf@GlaDOS.home> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0003-doc-Document-display-and-vt-fields-of-slim-configura.patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35493@debbugs.gnu.org >From a17223fd626d0039259053ff412fbe56c9cdc78c Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Sun, 28 Apr 2019 22:18:28 +0200 Subject: [PATCH 3/3] doc: Document 'display' and 'vt' fields of 'slim-configuration'. * doc/guix.texi (X Window): Mention 'display' and 'vt' fields of 'slim-configuration' and explain how to use them to add multiple SLiM services to system services. --- doc/guix.texi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 4f43db3443..6ac76c18f6 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -13450,6 +13450,33 @@ This is the type for the SLiM graphical login manager for X11. Like GDM, SLiM looks for session types described by @file{.desktop} files and allows users to choose a session from the log-in screen using @kbd{F1}. It also honors @file{~/.xsession} files. + +Unlike GDM, SLiM does not spawn the user session on a different VT after +logging in, which means that you can only start one graphical session. If you +want to be able to run multiple graphical sessions at the same time you have +to add multiple SLiM services to your system services. The following example +shows how to replace the default GDM service with two SLiM services on tty7 +and tty8. + +@lisp +(use-modules (gnu services) + (gnu services desktop) + (gnu services xorg) + (srfi srfi-1)) ;for 'remove' + +(operating-system + ;; ... + (services (cons* (service slim-service-type (slim-configuration + (display ":0") + (vt "vt7"))) + (service slim-service-type (slim-configuration + (display ":1") + (vt "vt8"))) + (remove (lambda (service) + (eq? (service-kind service) gdm-service-type)) + %desktop-services)))) +@end lisp + @end defvr @deftp {Data Type} slim-configuration @@ -13487,6 +13514,12 @@ false, you will be unable to log in. @item @code{xorg-configuration} (default @code{(xorg-configuration)}) Configuration of the Xorg graphical server. +@item @code{display} (default @code{":0"}) +The display on which to start the Xorg graphical server. + +@item @code{vt} (default @code{"vt7"}) +The VT on which to start the Xorg graphical server. + @item @code{xauth} (default: @code{xauth}) The XAuth package to use. -- 2.21.0