From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 14:19:26 2019 Received: (at submit) by debbugs.gnu.org; 29 Apr 2019 18:19:26 +0000 Received: from localhost ([127.0.0.1]:39663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAsA-0003wg-4p for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:19:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAs5-0003wR-C2 for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:19:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:35029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLAs0-0000yu-9Y for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:19:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLArz-0006Pw-5O for guix-patches@gnu.org; Mon, 29 Apr 2019 14:19:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLAry-0000yO-5m for guix-patches@gnu.org; Mon, 29 Apr 2019 14:19:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42123) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hLArx-0000xb-KT for guix-patches@gnu.org; Mon, 29 Apr 2019 14:19:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D358F2400FB for ; Mon, 29 Apr 2019 20:19:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1556561950; bh=n5v3OgAmm+kgd9ro5lg3JfiNm0cRYU8Ek/h6zI8pYxw=; h=From:To:Subject:Date:From; b=YMu6fyP9jL6ztfcNQ037Yw2uwvd416PbMGNdNMnKTlp9VgJ5JAHsPtiwEmAO/sNLT cg1OLE2aMTZpmHTnEvkbiGQu9xAQZ7RPUIdZNkUyWylkQU3YqPlBOZUI68igBtTuoL 9qW/Bx8dl0ijBkvS3Dz8/ut6w+Dly9R77uwOrDvL70hgretyR3kccxCMKsZws36YUR /epipne4jRlD3jml28hWRp/NxWa4CQP0pQqDwW3yO+7XkUtCPLWZJMHoMT4Jp8yGZR mfptc9vRx/qNnzmFOWU3ASMESmzjYx12Pfd+Yaa+y5bF4roCcigL51Z08vHO3HritE 1L9/uba13+1Zg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44tCbf1Zd0z9rxN for ; Mon, 29 Apr 2019 20:19:09 +0200 (CEST) From: Diego Nicola Barbato To: guix-patches@gnu.org Subject: [PATCH 0/3] Allow multiple SLiM services. Date: Mon, 29 Apr 2019 20:19:09 +0200 Message-ID: <871s1kad42.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.67.36.66 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello Guix, This patch series makes it possible to run multiple instances of SLiM (on different ttys) by adding multiple SLiM services to system services. I mentioned this idea on guix-devel [0]. Regards, Diego [0]: https://lists.gnu.org/archive/html/guix-devel/2019-04/msg00535.html From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 14:20:49 2019 Received: (at 35493) by debbugs.gnu.org; 29 Apr 2019 18:20:49 +0000 Received: from localhost ([127.0.0.1]:39670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtU-0003zN-Kf for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:20:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtS-0003z8-GZ for 35493@debbugs.gnu.org; Mon, 29 Apr 2019 14:20:47 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 51AD82400FD for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1556562040; bh=uh4YCVvgXrok5tlP9Uo+nXQBFhmu/IJzuTw27cfwfmk=; h=From:To:Subject:Date:From; b=CUMshyvphkBykD48bU43OFvYJPLXh6iI1osrs9lJR24E6ptqUUC4b9yFH2bgvGLS0 kD99BsBS3MOVWHStaAZ5Gcd3jaBzPeVs3X2ebQDkbq3aL+TNQlad8ld9Aw0chGUPrl Wy32fGEvNUVto5szYP7sxU6DUiEf72jCuZGTDUcWFtwtQWfPGYZSi7S4M33UhR5J1h OSujiGq3OaibTnSW+quHcX2UEbu9umoWZVW0HS7qd4etTc8pv58eQOWvOk+mNTsf2O OlrH59S8Td/UKcSDTGyhqGJYbUjhjovx0gK3eE/hFFH2sNWlmNIMUw+EMjo7yeBepn x4sj51Zb7GRpA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44tCdM5jWNz9rxf for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:39 +0200 (CEST) From: Diego Nicola Barbato To: 35493@debbugs.gnu.org Subject: [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. Date: Mon, 29 Apr 2019 20:20:39 +0200 Message-ID: <87zho88yh4.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-slim-Allow-customisation-of-Xorg-display.patch X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >From 7e7205e0f8d70a89a7ed4fd4844feb9b6a8d8567 Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Sun, 28 Apr 2019 14:48:47 +0200 Subject: [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. Previously SLiM could only start on display :0.0. This change makes it possible to run multiple instances of SLiM at the same time. * gnu/packages/patches/slim-display.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/display-managers.scm (slim): Use it. --- gnu/local.mk | 1 + gnu/packages/display-managers.scm | 3 +- gnu/packages/patches/slim-display.patch | 75 +++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/slim-display.patch diff --git a/gnu/local.mk b/gnu/local.mk index f79bfd8b93..0b952f6f9f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1267,6 +1267,7 @@ dist_patch_DATA = \ %D%/packages/patches/slim-sigusr1.patch \ %D%/packages/patches/slim-reset.patch \ %D%/packages/patches/slim-login.patch \ + %D%/packages/patches/slim-display.patch \ %D%/packages/patches/snappy-add-O2-flag-in-CmakeLists.txt.patch \ %D%/packages/patches/sooperlooper-build-with-wx-30.patch \ %D%/packages/patches/soundconverter-remove-gconf-dependency.patch \ diff --git a/gnu/packages/display-managers.scm b/gnu/packages/display-managers.scm index afe5cc2b7b..f653bd60c5 100644 --- a/gnu/packages/display-managers.scm +++ b/gnu/packages/display-managers.scm @@ -322,7 +322,8 @@ GTK+, lets you select a desktop session and log in to it.") "slim-reset.patch" "slim-login.patch" "slim-session.patch" - "slim-sigusr1.patch")))) + "slim-sigusr1.patch" + "slim-display.patch")))) (build-system cmake-build-system) (inputs `(("linux-pam" ,linux-pam) ("libpng" ,libpng) diff --git a/gnu/packages/patches/slim-display.patch b/gnu/packages/patches/slim-display.patch new file mode 100644 index 0000000000..f68604a94b --- /dev/null +++ b/gnu/packages/patches/slim-display.patch @@ -0,0 +1,75 @@ +Add "display_name" configuration option and use its value instead of +the hard coded one. + +Patch by Diego N. Barbato + +--- a/app.cpp 1970-01-01 01:00:00.000000000 +0100 ++++ b/app.cpp 2019-04-27 13:48:23.479133531 +0200 +@@ -190,7 +190,13 @@ + } + + void App::Run() { +- DisplayName = DISPLAY; ++ /* Read configuration */ ++ cfg = new Cfg; ++ char *cfgfile = getenv("SLIM_CFGFILE"); ++ if (!cfgfile) cfgfile = CFGFILE; ++ cfg->readConf(cfgfile); ++ ++ DisplayName = cfg->getOption("display_name").c_str(); + + #ifdef XNEST_DEBUG + char* p = getenv("DISPLAY"); +@@ -200,11 +206,7 @@ + } + #endif + +- /* Read configuration and theme */ +- cfg = new Cfg; +- char *cfgfile = getenv("SLIM_CFGFILE"); +- if (!cfgfile) cfgfile = CFGFILE; +- cfg->readConf(cfgfile); ++ /* Read theme */ + string themebase = ""; + string themefile = ""; + string themedir = ""; +@@ -911,9 +913,7 @@ + static const int MAX_XSERVER_ARGS = 256; + static char* server[MAX_XSERVER_ARGS+2] = { NULL }; + server[0] = (char *)cfg->getOption("default_xserver").c_str(); +- string argOption = cfg->getOption("xserver_arguments"); +- /* Add mandatory -xauth option */ +- argOption = argOption + " -auth " + cfg->getOption("authfile"); ++ string argOption = cfg->getOption("display_name") + " " + cfg->getOption("xserver_arguments") + " -auth " + cfg->getOption("authfile"); + char* args = new char[argOption.length()+2]; /* NULL plus vt */ + strcpy(args, argOption.c_str()); + +@@ -1233,7 +1233,7 @@ + authfile = cfg->getOption("authfile"); + remove(authfile.c_str()); + putenv(StrConcat("XAUTHORITY=", authfile.c_str())); +- Util::add_mcookie(mcookie, ":0", cfg->getOption("xauth_path"), ++ Util::add_mcookie(mcookie, cfg->getOption("display_name").c_str(), cfg->getOption("xauth_path"), + authfile); + } + +--- a/cfg.cpp 1970-01-01 01:00:00.000000000 +0100 ++++ b/cfg.cpp 2019-04-27 13:49:40.511773743 +0200 +@@ -31,6 +31,7 @@ + /* Configuration options */ + options.insert(option("default_path","/bin:/usr/bin:/usr/local/bin")); + options.insert(option("default_xserver","/usr/bin/X")); ++ options.insert(option("display_name",":0.0")); + options.insert(option("xserver_arguments","")); + options.insert(option("numlock","")); + options.insert(option("daemon","")); +--- a/switchuser.cpp 1970-01-01 01:00:00.000000000 +0100 ++++ b/switchuser.cpp 2019-04-27 13:50:19.380096651 +0200 +@@ -54,6 +54,6 @@ + string home = string(Pw->pw_dir); + string authfile = home + "/.Xauthority"; + remove(authfile.c_str()); +- Util::add_mcookie(mcookie, ":0", cfg->getOption("xauth_path"), ++ Util::add_mcookie(mcookie, displayName.c_str(), cfg->getOption("xauth_path"), + authfile); + } -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 14:20:59 2019 Received: (at 35493) by debbugs.gnu.org; 29 Apr 2019 18:20:59 +0000 Received: from localhost ([127.0.0.1]:39673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtf-0003zn-DL for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:20:59 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtd-0003za-A5 for 35493@debbugs.gnu.org; Mon, 29 Apr 2019 14:20:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AC6FA2400FF for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1556562051; bh=YNt/N9VK6CZQEIbq/33D/FCS8FOfW1F/Q1KskcZE9ps=; h=From:To:Subject:Date:From; b=a2RI3QZyp3bSCqHaqcoWr2ZwdQdSi7HB6n40YMsOADstyT/Kn4tQJoIkKw71VO3a7 BjJndeXqQ2pNTzqssK8fxyyMtsShqomqAvg/DRrFPsyi5TD33w/QXA6wi+pRjnCztD qJEzQRsIbm5F6VjmxCIowFMe1zrzSLl4awl1kvR7w7zwyyRnw2Ax9+zjTMXN0BmaXT ETIppUi555qhlT3lwF6i2VJZFNku7YykTFSsyRyhEkJUEi02or64GKWw73qe4WbhXH f/t5kikZI+mxuuEWXJ+uSq6JBrHrjnlCZSw0joIMAn156rqGf1IpUVMwQo5+1BxyJG HfxvNHz9gCq3w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44tCdb2TY7z9rxn for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:51 +0200 (CEST) From: Diego Nicola Barbato To: 35493@debbugs.gnu.org Subject: [PATCH 2/3] services: slim: Allow SLiM to be started on multiple ttys. Date: Mon, 29 Apr 2019 20:20:51 +0200 Message-ID: <87y33s8ygs.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0002-services-slim-Allow-SLiM-to-be-started-on-multiple-t.patch X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >From fddb8de350bcf5c89932e032b3fe2ad4dc7c91dd Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Sun, 28 Apr 2019 15:52:50 +0200 Subject: [PATCH 2/3] services: slim: Allow SLiM to be started on multiple ttys. This change makes it possible to add multiple SLiM services to an operating system configuration by setting the new 'display' and 'vt' fields in their configurations to different values. Each SLiM service will get its own authfile, logfile, lockfile, and shepherd service, which will start SLiM on a different tty. * gnu/services/xorg.scm: Export slim-configuration-display and slim-configuration-vt. ()[display, vt]: New fields. (slim-shepherd-service): Refactor let. [slim.cfg]: Use new fields for setting display_name, xserver_arguments, authfile, lockfile, and logfile. [shepherd-service][provision]: Name the shepherd service according to the value of 'vt'. [shepherd-service][start]: Delete the right lockfile. --- gnu/services/xorg.scm | 85 +++++++++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 44dcec4ec9..65e9d48915 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -83,6 +83,8 @@ slim-configuration-shepherd slim-configuration-auto-login-session slim-configuration-xorg + slim-configuration-display + slim-configuration-vt slim-configuration-sessreg slim-service-type @@ -488,6 +490,10 @@ desktop session from the system or user profile will be used." (default #f)) (xorg-configuration slim-configuration-xorg (default (xorg-configuration))) + (display slim-configuration-display + (default ":0")) + (vt slim-configuration-vt + (default "vt7")) (sessreg slim-configuration-sessreg (default sessreg))) @@ -499,20 +505,26 @@ desktop session from the system or user profile will be used." (slim-configuration-allow-empty-passwords? config)))) (define (slim-shepherd-service config) - (define slim.cfg - (let ((xinitrc (xinitrc #:fallback-session - (slim-configuration-auto-login-session config))) - (xauth (slim-configuration-xauth config)) - (startx (xorg-start-command (slim-configuration-xorg config))) - (shepherd (slim-configuration-shepherd config)) - (theme-name (slim-configuration-theme-name config)) - (sessreg (slim-configuration-sessreg config))) + (let* ((xinitrc (xinitrc #:fallback-session + (slim-configuration-auto-login-session config))) + (xauth (slim-configuration-xauth config)) + (startx (xorg-start-command (slim-configuration-xorg config))) + (display (slim-configuration-display config)) + (vt (slim-configuration-vt config)) + (shepherd (slim-configuration-shepherd config)) + (theme-name (slim-configuration-theme-name config)) + (sessreg (slim-configuration-sessreg config)) + (lockfile (string-append "/var/run/slim-" vt ".lock"))) + (define slim.cfg (mixed-text-file "slim.cfg" " default_path /run/current-system/profile/bin default_xserver " startx " -xserver_arguments :0 vt7 +display_name " display " +xserver_arguments " vt " xauth_path " xauth "/bin/xauth -authfile /var/run/slim.auth +authfile /var/run/slim-" vt ".auth +lockfile " lockfile " +logfile /var/log/slim-" vt ".log # The login command. '%session' is replaced by the chosen session name, one # of the names specified in the 'sessions' setting: 'wmaker', 'xfce', etc. @@ -530,32 +542,33 @@ reboot_cmd " shepherd "/sbin/reboot\n" "") (if theme-name (string-append "current_theme " theme-name "\n") - "")))) - - (define theme - (slim-configuration-theme config)) - - (list (shepherd-service - (documentation "Xorg display server") - (provision '(xorg-server)) - (requirement '(user-processes host-name udev)) - (start - #~(lambda () - ;; A stale lock file can prevent SLiM from starting, so remove it to - ;; be on the safe side. - (false-if-exception (delete-file "/var/run/slim.lock")) - - (fork+exec-command - (list (string-append #$(slim-configuration-slim config) - "/bin/slim") - "-nodaemon") - #:environment-variables - (list (string-append "SLIM_CFGFILE=" #$slim.cfg) - #$@(if theme - (list #~(string-append "SLIM_THEMESDIR=" #$theme)) - #~()))))) - (stop #~(make-kill-destructor)) - (respawn? #t)))) + ""))) + + (define theme + (slim-configuration-theme config)) + + (list (shepherd-service + (documentation "Xorg display server") + (provision (list (symbol-append 'xorg-server- + (string->symbol vt)))) + (requirement '(user-processes host-name udev)) + (start + #~(lambda () + ;; A stale lock file can prevent SLiM from starting, so remove it to + ;; be on the safe side. + (false-if-exception (delete-file lockfile)) + + (fork+exec-command + (list (string-append #$(slim-configuration-slim config) + "/bin/slim") + "-nodaemon") + #:environment-variables + (list (string-append "SLIM_CFGFILE=" #$slim.cfg) + #$@(if theme + (list #~(string-append "SLIM_THEMESDIR=" #$theme)) + #~()))))) + (stop #~(make-kill-destructor)) + (respawn? #t))))) (define slim-service-type (service-type (name 'slim) -- 2.21.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 29 14:21:07 2019 Received: (at 35493) by debbugs.gnu.org; 29 Apr 2019 18:21:07 +0000 Received: from localhost ([127.0.0.1]:39678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtm-00040x-Rh for submit@debbugs.gnu.org; Mon, 29 Apr 2019 14:21:07 -0400 Received: from mout02.posteo.de ([185.67.36.66]:56233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLAtj-0003zl-Aq for 35493@debbugs.gnu.org; Mon, 29 Apr 2019 14:21:03 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AC6122400E5 for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1556562057; bh=IjNsmbneWCo8czi17XwU5Bz/jl9noLqDNqq8KIGderI=; h=From:To:Subject:Date:From; b=hfFq4+3cq+MOoiCwbM4INkzAUpVGmZ0sNrhB2qSpI8ra58ok/AC8H+VHzNHsjDtIZ bNhddL8rFF8rLdQu+Eoj7uVVYwzUQbqrJhFMlzWvHa3Yg5MWLFx8Q3Ef86GQe0wLxN Gx/EVo1tK5upiTQDsJektaGmfiLdH4sOg4vo7gb30EtiRfJRbq+ET4F11RVRvS7UIn ve/zY4rg6O+e8rEkxFjxroeIyAjpmc4fTQy1EPJc+osXzq3Xxfh+8o2ZvYUUQ7puBu MJzcbv09IEbW7H1v8bPpGsyyDS/D3mTnF8Gil9Ex4a2eTWcCxgUM7D8RryRmJK5JQ9 Majh+0uTbTtZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44tCdj2hHJz9rxf for <35493@debbugs.gnu.org>; Mon, 29 Apr 2019 20:20:57 +0200 (CEST) From: Diego Nicola Barbato To: 35493@debbugs.gnu.org Subject: [PATCH 3/3] doc: Document 'display' and 'vt' fields of 'slim-configuration'. Date: Mon, 29 Apr 2019 20:20:57 +0200 Message-ID: <87wojc8ygm.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0003-doc-Document-display-and-vt-fields-of-slim-configura.patch X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >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 From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 04:36:02 2019 Received: (at 35493) by debbugs.gnu.org; 6 May 2019 08:36:02 +0000 Received: from localhost ([127.0.0.1]:55668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNZ6P-00050Z-Vb for submit@debbugs.gnu.org; Mon, 06 May 2019 04:36:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNZ6N-00050J-9G for 35493@debbugs.gnu.org; Mon, 06 May 2019 04:36:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNZ6I-0007us-2F; Mon, 06 May 2019 04:35:54 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47656 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hNZ6G-0000GN-EX; Mon, 06 May 2019 04:35:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Diego Nicola Barbato Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> Date: Mon, 06 May 2019 10:35:51 +0200 In-Reply-To: <87zho88yh4.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Mon, 29 Apr 2019 20:20:39 +0200") Message-ID: <87muk0m13s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Diego, Diego Nicola Barbato skribis: >>>From 7e7205e0f8d70a89a7ed4fd4844feb9b6a8d8567 Mon Sep 17 00:00:00 2001 > From: Diego Nicola Barbato > Date: Sun, 28 Apr 2019 14:48:47 +0200 > Subject: [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. > > Previously SLiM could only start on display :0.0. This change makes it > possible to run multiple instances of SLiM at the same time. > > * gnu/packages/patches/slim-display.patch: New file. > * gnu/local.mk (dist_patch_DATA): Add it. > * gnu/packages/display-managers.scm (slim): Use it. [...] > +++ b/gnu/packages/patches/slim-display.patch > @@ -0,0 +1,75 @@ > +Add "display_name" configuration option and use its value instead of > +the hard coded one. > + > +Patch by Diego N. Barbato The patch LGTM. Just one question: did you submit it upstream (is there still an upstream?), and if so, could we add the URL of upstream=E2=80=99s tracking software or an indication about the submission? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon May 06 07:31:45 2019 Received: (at 35493) by debbugs.gnu.org; 6 May 2019 11:31:46 +0000 Received: from localhost ([127.0.0.1]:55806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNbqT-0002im-B1 for submit@debbugs.gnu.org; Mon, 06 May 2019 07:31:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNbqR-0002d0-GQ for 35493@debbugs.gnu.org; Mon, 06 May 2019 07:31:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 987832400E6 for <35493@debbugs.gnu.org>; Mon, 6 May 2019 13:31:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1557142297; bh=yzy5D5yO+zas8vRGIvs6GlYIVsgHmBxoJtSIXVjK5s8=; h=From:To:Cc:Subject:Date:From; b=iDWEUSgN4gqesrgQog433EmblT1yzy0FS1ex/hhbUN3UdcHRNWPTxqfjXJqu1krio z3s1aoaHya9dy281VgAO24Q1t0c33rcl+HDk70v2GHpS8difYdA/Z+tnNLvdOWFoGa +L2Ev7g/VqpdFOqLdMOsE4XjrO8xdNwS+Ozdy4f44vAvBaKns4M0ixMPjlQvlSIVB3 8cCfquNxDLM5O+mpoeS2H/5taq4Ee6P/qTNdedydPxvZXxVnAsANJ8SmkzSpd5bMnh nuN8v/C1Op5hg9kj4/C+TthH1GpVjiqp18uHroY55WaBpBmh3si2Rpnd24Ch+8rhzk +ebCxUUU7rsMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44yLD81rK6z9rxH; Mon, 6 May 2019 13:31:35 +0200 (CEST) From: Diego Nicola Barbato To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> Date: Mon, 06 May 2019 13:31:35 +0200 In-Reply-To: <87muk0m13s.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 06 May 2019 10:35:51 +0200") Message-ID: <874l67rf8o.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Ludo, Ludovic Court=C3=A8s writes: > Hi Diego, > > Diego Nicola Barbato skribis: > >>>>From 7e7205e0f8d70a89a7ed4fd4844feb9b6a8d8567 Mon Sep 17 00:00:00 2001 >> From: Diego Nicola Barbato >> Date: Sun, 28 Apr 2019 14:48:47 +0200 >> Subject: [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. >> >> Previously SLiM could only start on display :0.0. This change makes it >> possible to run multiple instances of SLiM at the same time. >> >> * gnu/packages/patches/slim-display.patch: New file. >> * gnu/local.mk (dist_patch_DATA): Add it. >> * gnu/packages/display-managers.scm (slim): Use it. > > [...] > >> +++ b/gnu/packages/patches/slim-display.patch >> @@ -0,0 +1,75 @@ >> +Add "display_name" configuration option and use its value instead of >> +the hard coded one. >> + >> +Patch by Diego N. Barbato > > The patch LGTM. Just one question: did you submit it upstream (is there > still an upstream?), and if so, could we add the URL of upstream=E2=80=99s > tracking software or an indication about the submission? I did not submit it upstream (the most likely candidate seems to be this [0] even though it is not mentioned e.g. on the ArchWiki), since the general consensus seems to be that the project has been abandoned. Regards, Diego [0]: https://github.com/iwamatsu/slim From debbugs-submit-bounces@debbugs.gnu.org Tue May 07 09:56:04 2019 Received: (at 35493) by debbugs.gnu.org; 7 May 2019 13:56:04 +0000 Received: from localhost ([127.0.0.1]:59262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO0Zf-0008UT-HL for submit@debbugs.gnu.org; Tue, 07 May 2019 09:56:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO0Zd-0008U6-IU for 35493@debbugs.gnu.org; Tue, 07 May 2019 09:56:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hO0ZY-0001CC-CH; Tue, 07 May 2019 09:55:56 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=39488 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hO0ZX-00086B-M6; Tue, 07 May 2019 09:55:55 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Diego Nicola Barbato Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> <874l67rf8o.fsf@GlaDOS.home> Date: Tue, 07 May 2019 15:55:53 +0200 In-Reply-To: <874l67rf8o.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Mon, 06 May 2019 13:31:35 +0200") Message-ID: <87woj25pxy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Diego, Diego Nicola Barbato skribis: > Ludovic Court=C3=A8s writes: [...] >> The patch LGTM. Just one question: did you submit it upstream (is there >> still an upstream?), and if so, could we add the URL of upstream=E2=80= =99s >> tracking software or an indication about the submission? > > I did not submit it upstream (the most likely candidate seems to be this > [0] even though it is not mentioned e.g. on the ArchWiki), since the > general consensus seems to be that the project has been abandoned. That makes sense. I=E2=80=99ve applied the 3 patches and confirmed that gnu/system/examples/vm-image.tmpl, which uses SLiM, still works correctly. However, I=E2=80=99ve noticed that this changes the name of the default She= pherd service from =E2=80=98xorg-server=E2=80=99 to =E2=80=98xorg-server-vt7=E2= =80=99. What about generating an =E2=80=98xorg-server=E2=80=99 Shepherd service tha= t would depend on all the =E2=80=98xorg-server-vtN=E2=80=99 services? Hmm that wou= ldn=E2=80=99t be entirely equivalent: =E2=80=98herd start xorg-server=E2=80=99 would start t= hem all, but =E2=80=98herd stop xorg-server=E2=80=99 wouldn=E2=80=99t stop any of them. Perhaps a simple fix is, when there=E2=80=99s only one server launched, to = have the Shepherd service provide both =E2=80=98xorg-server-vtN=E2=80=99 and =E2= =80=98xorg-server=E2=80=99. Or to special-case vt7 such that the service for vt7 provides both =E2=80=98xorg-server=E2=80=99 and =E2=80=98xorg-server-vt7=E2=80=99. Thoughts? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 07 17:54:46 2019 Received: (at 35493) by debbugs.gnu.org; 7 May 2019 21:54:46 +0000 Received: from localhost ([127.0.0.1]:59856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO82w-0005eV-3v for submit@debbugs.gnu.org; Tue, 07 May 2019 17:54:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hO82u-0005eH-0m for 35493@debbugs.gnu.org; Tue, 07 May 2019 17:54:45 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 185732400E5 for <35493@debbugs.gnu.org>; Tue, 7 May 2019 23:54:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1557266078; bh=5kbp5cDrvGpcUDXdHhbevILR+AQVpl7JurJij2Q21Ks=; h=From:To:Cc:Subject:Date:From; b=LJfWJPfCeUzXQZZG2sNURhYJNAOVypxVUIAO7XnOhS9z9QeuD/tEH4Fk6KqkV/Rku LafkE6XJc+bGslE02T48HL05JmX6EV0p1eYL/YTWRufyL5tn+KAvgRJA+XL+KOg5uy WtefhpmuaSv5NRyQ3nQKUBPjqqi0gQ/xOhVGwnKJ596QF3d2Mha9xye9KgQje8GQDl 04FjFlQSyFiOuY3IKy3LRveY5yveD6aDDS7nfYqn248vsI3QbP9we0xn1HAGwl05zY WsOjZEKvvzONxTgy0OjdD1lrwDVCPG6trdVAYcMGMngYxGV6xQk4/o5qKzhhW2LCP/ IUF7MOKJfSSpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44zD0Y2RmSz9rxD; Tue, 7 May 2019 23:54:37 +0200 (CEST) From: Diego Nicola Barbato To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> <874l67rf8o.fsf@GlaDOS.home> <87woj25pxy.fsf@gnu.org> Date: Tue, 07 May 2019 23:54:36 +0200 In-Reply-To: <87woj25pxy.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 07 May 2019 15:55:53 +0200") Message-ID: <87tve6orqb.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > Hi Diego, > > Diego Nicola Barbato skribis: > >> Ludovic Court=C3=A8s writes: > > [...] > >>> The patch LGTM. Just one question: did you submit it upstream (is there >>> still an upstream?), and if so, could we add the URL of upstream=E2=80= =99s >>> tracking software or an indication about the submission? >> >> I did not submit it upstream (the most likely candidate seems to be this >> [0] even though it is not mentioned e.g. on the ArchWiki), since the >> general consensus seems to be that the project has been abandoned. > > That makes sense. > > I=E2=80=99ve applied the 3 patches and confirmed that > gnu/system/examples/vm-image.tmpl, which uses SLiM, still works > correctly. > > However, I=E2=80=99ve noticed that this changes the name of the default S= hepherd > service from =E2=80=98xorg-server=E2=80=99 to =E2=80=98xorg-server-vt7=E2= =80=99. > > What about generating an =E2=80=98xorg-server=E2=80=99 Shepherd service t= hat would > depend on all the =E2=80=98xorg-server-vtN=E2=80=99 services? Hmm that w= ouldn=E2=80=99t be > entirely equivalent: =E2=80=98herd start xorg-server=E2=80=99 would start= them all, but > =E2=80=98herd stop xorg-server=E2=80=99 wouldn=E2=80=99t stop any of them. > > Perhaps a simple fix is, when there=E2=80=99s only one server launched, t= o have > the Shepherd service provide both =E2=80=98xorg-server-vtN=E2=80=99 and = =E2=80=98xorg-server=E2=80=99. > Or to special-case vt7 such that the service for vt7 provides both > =E2=80=98xorg-server=E2=80=99 and =E2=80=98xorg-server-vt7=E2=80=99. > > Thoughts? How about changing the default value of vt to #f and having the Shepherd service provide =E2=80=98xorg-server-vtN=E2=80=99 only if vt is set to "vtN= " and =E2=80=98xorg-server=E2=80=99 otherwise. That way the name of the default = Shepherd service would not change. I have attached a patch that does just that. If we apply it we will also have to update the documentation to reflect the change of vt's default value. Regards, Diego --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-services-slim-Make-default-Shepherd-service-provide-.patch >From 14d0106f53ee17aea8f176745bf6dd5d8a748965 Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Tue, 7 May 2019 22:22:48 +0200 Subject: [PATCH] services: slim: Make default Shepherd service provide 'xorg-server'. Commit 6426a8fb6c changed the name of the default Shepherd service from 'xorg-server' to 'xorg-server-vt7'. This patch changes it back. * gnu/services/xorg.scm (define-module): Use module (ice-9 format). ()[vt]: Change default value to #f. (slim-shepherd-service)[shepherd-service][provision]: Provide 'xorg-server-vtN' if vt is set to "vtN" and 'xorg-server' if vt is #f. --- gnu/services/xorg.scm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 65e9d48915..81e38665c9 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -52,6 +52,7 @@ #:use-module (srfi srfi-9) #:use-module (srfi srfi-26) #:use-module (ice-9 match) + #:use-module (ice-9 format) #:export (xorg-configuration xorg-configuration? xorg-configuration-modules @@ -493,7 +494,7 @@ desktop session from the system or user profile will be used." (display slim-configuration-display (default ":0")) (vt slim-configuration-vt - (default "vt7")) + (default #f)) (sessreg slim-configuration-sessreg (default sessreg))) @@ -510,7 +511,8 @@ desktop session from the system or user profile will be used." (xauth (slim-configuration-xauth config)) (startx (xorg-start-command (slim-configuration-xorg config))) (display (slim-configuration-display config)) - (vt (slim-configuration-vt config)) + (vt? (slim-configuration-vt config)) + (vt (or vt? "vt7")) (shepherd (slim-configuration-shepherd config)) (theme-name (slim-configuration-theme-name config)) (sessreg (slim-configuration-sessreg config)) @@ -549,8 +551,8 @@ reboot_cmd " shepherd "/sbin/reboot\n" (list (shepherd-service (documentation "Xorg display server") - (provision (list (symbol-append 'xorg-server- - (string->symbol vt)))) + (provision (list (string->symbol + (format #f "xorg-server~@[-~a~]" vt?)))) (requirement '(user-processes host-name udev)) (start #~(lambda () -- 2.21.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 08 06:29:54 2019 Received: (at 35493) by debbugs.gnu.org; 8 May 2019 10:29:54 +0000 Received: from localhost ([127.0.0.1]:60390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOJpi-0001oP-Ce for submit@debbugs.gnu.org; Wed, 08 May 2019 06:29:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOJpf-0001o9-LT for 35493@debbugs.gnu.org; Wed, 08 May 2019 06:29:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOJpZ-0004Ao-Jp; Wed, 08 May 2019 06:29:45 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36232 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hOJpY-0000Tu-Ut; Wed, 08 May 2019 06:29:45 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Diego Nicola Barbato Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> <874l67rf8o.fsf@GlaDOS.home> <87woj25pxy.fsf@gnu.org> <87tve6orqb.fsf@GlaDOS.home> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 19 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 08 May 2019 12:29:42 +0200 In-Reply-To: <87tve6orqb.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Tue, 07 May 2019 23:54:36 +0200") Message-ID: <87v9ylz1bd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Diego Nicola Barbato skribis: > Ludovic Court=C3=A8s writes: [...] >> Perhaps a simple fix is, when there=E2=80=99s only one server launched, = to have >> the Shepherd service provide both =E2=80=98xorg-server-vtN=E2=80=99 and = =E2=80=98xorg-server=E2=80=99. >> Or to special-case vt7 such that the service for vt7 provides both >> =E2=80=98xorg-server=E2=80=99 and =E2=80=98xorg-server-vt7=E2=80=99. >> >> Thoughts? > > How about changing the default value of vt to #f and having the Shepherd > service provide =E2=80=98xorg-server-vtN=E2=80=99 only if vt is set to "v= tN" and > =E2=80=98xorg-server=E2=80=99 otherwise. That way the name of the defaul= t Shepherd > service would not change. I think I would prefer special-casing vt7, as shown below. That way the =E2=80=98vt=E2=80=99 field would always be a string, which looks more consi= stent to me. Thoughts? Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 65e9d48915..f7c8684738 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -549,8 +549,11 @@ reboot_cmd " shepherd "/sbin/reboot\n" (list (shepherd-service (documentation "Xorg display server") - (provision (list (symbol-append 'xorg-server- - (string->symbol vt)))) + (provision (cons (symbol-append 'xorg-server- + (string->symbol vt)) + (if (string=? vt "vt7") + '(xorg-server) + '()))) (requirement '(user-processes host-name udev)) (start #~(lambda () --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 08 16:12:11 2019 Received: (at 35493) by debbugs.gnu.org; 8 May 2019 20:12:12 +0000 Received: from localhost ([127.0.0.1]:34126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOSvD-0005BF-Kv for submit@debbugs.gnu.org; Wed, 08 May 2019 16:12:11 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOSvA-0005B0-7K for 35493@debbugs.gnu.org; Wed, 08 May 2019 16:12:09 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3D1672400E5 for <35493@debbugs.gnu.org>; Wed, 8 May 2019 22:12:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1557346322; bh=Aod1Mg9air2lM9I9d+egqXYC1OWCPWeMzxLBhpLZhrE=; h=From:To:Cc:Subject:Date:From; b=TrDfWSyS8LzrooBDAPlAWZJJTEDdE8T4cSQ9scT1V7iDfm5c0T+w0Wq2FZKw3CPJU OgrPRwFHfQswPk8S+NlWqqSamzVQ+v++szE5VLR7J7xlZbtzCkVTTcBtu2/ft000gW bPP32eHTIbqqRjH1VGM5+8IOpUk0R7j6G1G4a87sQdrljAjT6otuC75up3++XMtYE1 Adj9mZOp9KjcCVFrILvvrKTFOq0T2a6cBfmXmKmokKNgiIFW2aN3C/RJmaxQ43oRxw fjc989s0CDfoeT6hG3e7/5I//Ll1lsVDiCOyCMl5XG+U0u/9gHGbaUwu7gd1B7yJPQ +Afpf5P5bKsOw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 44zngj47gHz9rxD; Wed, 8 May 2019 22:12:01 +0200 (CEST) From: Diego Nicola Barbato To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> <874l67rf8o.fsf@GlaDOS.home> <87woj25pxy.fsf@gnu.org> <87tve6orqb.fsf@GlaDOS.home> <87v9ylz1bd.fsf@gnu.org> Date: Wed, 08 May 2019 22:12:01 +0200 In-Reply-To: <87v9ylz1bd.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 08 May 2019 12:29:42 +0200") Message-ID: <87mujwpuy6.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493 Cc: 35493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Ludovic Court=C3=A8s writes: > Hi, > > Diego Nicola Barbato skribis: > >> Ludovic Court=C3=A8s writes: > > [...] > >>> Perhaps a simple fix is, when there=E2=80=99s only one server launched,= to have >>> the Shepherd service provide both =E2=80=98xorg-server-vtN=E2=80=99 and= =E2=80=98xorg-server=E2=80=99. >>> Or to special-case vt7 such that the service for vt7 provides both >>> =E2=80=98xorg-server=E2=80=99 and =E2=80=98xorg-server-vt7=E2=80=99. >>> >>> Thoughts? >> >> How about changing the default value of vt to #f and having the Shepherd >> service provide =E2=80=98xorg-server-vtN=E2=80=99 only if vt is set to "= vtN" and >> =E2=80=98xorg-server=E2=80=99 otherwise. That way the name of the defau= lt Shepherd >> service would not change. > > I think I would prefer special-casing vt7, as shown below. That way the > =E2=80=98vt=E2=80=99 field would always be a string, which looks more con= sistent to me. > > Thoughts? I have no strong feelings either way. If it is OK that 'herd status' displays 'xorg-server-vt7' instead of 'xorg-server' we can go for the special-casing approach. Regards, Diego From debbugs-submit-bounces@debbugs.gnu.org Thu May 09 06:19:13 2019 Received: (at 35493-done) by debbugs.gnu.org; 9 May 2019 10:19:13 +0000 Received: from localhost ([127.0.0.1]:34702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOg8u-0004Am-NT for submit@debbugs.gnu.org; Thu, 09 May 2019 06:19:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOg8s-0004AV-8Z for 35493-done@debbugs.gnu.org; Thu, 09 May 2019 06:19:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOg8n-00071H-5S; Thu, 09 May 2019 06:19:05 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=52776 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hOg8m-0003gz-JW; Thu, 09 May 2019 06:19:05 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Diego Nicola Barbato Subject: Re: [bug#35493] [PATCH 1/3] gnu: slim: Allow customisation of Xorg display. References: <871s1kad42.fsf@GlaDOS.home> <87zho88yh4.fsf@GlaDOS.home> <87muk0m13s.fsf@gnu.org> <874l67rf8o.fsf@GlaDOS.home> <87woj25pxy.fsf@gnu.org> <87tve6orqb.fsf@GlaDOS.home> <87v9ylz1bd.fsf@gnu.org> <87mujwpuy6.fsf@GlaDOS.home> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 09 May 2019 12:19:03 +0200 In-Reply-To: <87mujwpuy6.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Wed, 08 May 2019 22:12:01 +0200") Message-ID: <878svgexrc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35493-done Cc: 35493-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Diego Nicola Barbato skribis: > I have no strong feelings either way. If it is OK that 'herd status' > displays 'xorg-server-vt7' instead of 'xorg-server' we can go for the > special-casing approach. OK, done in 6ad799d7c5c14b1bbf1e3db7198b312965d3b786. Thanks, Ludo=E2=80=99. From unknown Sun Jun 22 22:46:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 06 Jun 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator