From unknown Thu Jun 19 14:07:08 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#34493 <34493@debbugs.gnu.org> To: bug#34493 <34493@debbugs.gnu.org> Subject: Status: [PATCH] services: xorg: Enable override of xserver-arguments. Reply-To: bug#34493 <34493@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:07:08 +0000 retitle 34493 [PATCH] services: xorg: Enable override of xserver-arguments. reassign 34493 guix-patches submitter 34493 Jan Nieuwenhuizen severity 34493 normal tag 34493 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 15 13:33:09 2019 Received: (at submit) by debbugs.gnu.org; 15 Feb 2019 18:33:09 +0000 Received: from localhost ([127.0.0.1]:49797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guiIP-0001BW-DE for submit@debbugs.gnu.org; Fri, 15 Feb 2019 13:33:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1guiIL-0001Aq-4V for submit@debbugs.gnu.org; Fri, 15 Feb 2019 13:33:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:33453) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guiIF-0005zK-LW for submit@debbugs.gnu.org; Fri, 15 Feb 2019 13:32:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guiIE-0001yL-AI for guix-patches@gnu.org; Fri, 15 Feb 2019 13:32:59 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED,BAYES_50, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guiI7-0005uW-O9; Fri, 15 Feb 2019 13:32:54 -0500 Received: from [2001:985:ca59:1:718d:ac50:5291:c299] (port=39614 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1guiI6-0006sV-99; Fri, 15 Feb 2019 13:32:51 -0500 From: Jan Nieuwenhuizen To: guix-patches@gnu.org Subject: [PATCH] services: xorg: Enable override of xserver-arguments. Date: Fri, 15 Feb 2019 19:32:47 +0100 Message-ID: <878syg52cw.fsf@gnu.org> 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) 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: -1.0 (-) --=-=-= Content-Type: text/plain Hi! Here's a patch I have been using in order to use Emacs in lockstep mode; it took me some time to figure out that listening to TCP is turned off by default and where to enable it. Not sure if it warrants a whole example in the documentation, though. Also, I chose not to move "-logverbose" "-verbose" and"-terminate" to the default arguments, these are still hardcoded. Greetings, janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-services-xorg-Enable-override-of-xserver-arguments.patch >From f1685ca38dc0c55056eed0002f194b6081b6339a Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 15 Feb 2019 19:13:55 +0100 Subject: [PATCH] services: xorg: Enable override of xserver-arguments. * gnu/services/xorg.scm (xorg-start-command): Add parameter #:xserver-arguments. * doc/guix.texi (X Window): Document it. --- doc/guix.texi | 18 ++++++++++++++++++ gnu/services/xorg.scm | 7 ++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 1ac077d98a..31c99fab03 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -13123,6 +13123,7 @@ type @code{}. [#:fonts %default-xorg-fonts] @ [#:configuration-file (xorg-configuration-file @dots{})] @ [#:xorg-server @var{xorg-server}] + [#:xserver-arguments '("-nolisten" "tcp")] Return a @code{startx} script in which @var{modules}, a list of X module packages, and @var{fonts}, a list of X font directories, are available. See @code{xorg-wrapper} for more details on the arguments. The result should be @@ -13131,6 +13132,23 @@ used in place of @code{startx}. Usually the X server is started by a login manager. @end deffn +@cindex -listen tcp +@cindex -nolisten tcp +This procedure is useful to override command line options for the X server, +such as having it listen to over TCP: + +@example +(operating-system + ... + (services + (modify-services %desktop-services + (slim-service-type config => + (slim-configuration + (inherit config) + (startx (xorg-start-command + #:xserver-arguments '("-listen" "tcp")))))))) +@end example + @deffn {Scheme Procedure} xorg-configuration-file @ [#:modules %default-xorg-modules] @ [#:fonts %default-xorg-fonts] @ diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 1efb275794..50ed0d3b9a 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -290,7 +290,8 @@ in place of @code{/usr/bin/X}." (configuration-file (xorg-configuration-file #:modules modules #:fonts fonts)) - (xorg-server xorg-server)) + (xorg-server xorg-server) + (xserver-arguments '("-nolisten" "tcp"))) "Return a @code{startx} script in which @var{modules}, a list of X module packages, and @var{fonts}, a list of X font directories, are available. See @code{xorg-wrapper} for more details on the arguments. The result should be @@ -303,8 +304,8 @@ used in place of @code{startx}." (define exp ;; Write a small wrapper around the X server. #~(apply execl #$X #$X ;; Second #$X is for argv[0]. - "-logverbose" "-verbose" "-nolisten" "tcp" "-terminate" - (cdr (command-line)))) + "-logverbose" "-verbose" "-terminate" #$@xserver-arguments + (cdr (command-line)))) (program-file "startx" exp)) -- 2.20.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 16 16:21:42 2019 Received: (at 34493) by debbugs.gnu.org; 16 Feb 2019 21:21:42 +0000 Received: from localhost ([127.0.0.1]:50566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gv7P4-0006MG-HW for submit@debbugs.gnu.org; Sat, 16 Feb 2019 16:21:42 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:60436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gv7P0-0006M5-PD for 34493@debbugs.gnu.org; Sat, 16 Feb 2019 16:21:41 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 55EEC10766; Sat, 16 Feb 2019 22:21:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4u-TB7cHfwgG; Sat, 16 Feb 2019 22:21:35 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 6B9C710732; Sat, 16 Feb 2019 22:21:35 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: [bug#34493] [PATCH] services: xorg: Enable override of xserver-arguments. References: <878syg52cw.fsf@gnu.org> Date: Sat, 16 Feb 2019 22:21:34 +0100 In-Reply-To: <878syg52cw.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Fri, 15 Feb 2019 19:32:47 +0100") Message-ID: <877edzh1k1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 34493 Cc: 34493@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: -0.0 (/) Hello, Jan Nieuwenhuizen skribis: > Here's a patch I have been using in order to use Emacs in lockstep mode; > it took me some time to figure out that listening to TCP is turned off > by default and where to enable it. I see; I didn=E2=80=99t know about Lockstep, this looks fun. > Not sure if it warrants a whole example in the documentation, though. > Also, I chose not to move "-logverbose" "-verbose" and"-terminate" > to the default arguments, these are still hardcoded. OK. >>>From f1685ca38dc0c55056eed0002f194b6081b6339a Mon Sep 17 00:00:00 2001 > From: Jan Nieuwenhuizen > Date: Fri, 15 Feb 2019 19:13:55 +0100 > Subject: [PATCH] services: xorg: Enable override of xserver-arguments. > > * gnu/services/xorg.scm (xorg-start-command): Add parameter #:xserver-arg= uments. > * doc/guix.texi (X Window): Document it. [...] > +@cindex -listen tcp > +@cindex -nolisten tcp Maybe: @cindex @code{-listen tcp}, for X11. Otherwise LGTM, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 17 02:51:06 2019 Received: (at 34493-done) by debbugs.gnu.org; 17 Feb 2019 07:51:06 +0000 Received: from localhost ([127.0.0.1]:50694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvHEA-0004vq-8C for submit@debbugs.gnu.org; Sun, 17 Feb 2019 02:51:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvHE8-0004vM-ON for 34493-done@debbugs.gnu.org; Sun, 17 Feb 2019 02:51:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvHE0-00083y-SS; Sun, 17 Feb 2019 02:50:59 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=56098 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gvHDy-00057t-Pe; Sun, 17 Feb 2019 02:50:56 -0500 From: Jan Nieuwenhuizen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#34493] [PATCH] services: xorg: Enable override of xserver-arguments. Organization: AvatarAcademy.nl References: <878syg52cw.fsf@gnu.org> <877edzh1k1.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sun, 17 Feb 2019 08:50:52 +0100 In-Reply-To: <877edzh1k1.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 16 Feb 2019 22:21:34 +0100") Message-ID: <871s464zvn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (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: 0.0 (/) X-Debbugs-Envelope-To: 34493-done Cc: 34493-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: -1.0 (-) Ludovic Court=C3=A8s writes: >> +@cindex -listen tcp >> +@cindex -nolisten tcp > > Maybe: @cindex @code{-listen tcp}, for X11. Nice, done. > Otherwise LGTM, thank you! Thanks, pushed to master as 24f11b06bbd2c7f4a236a5ef4b6d9c7bf5be47a8 janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From unknown Thu Jun 19 14:07:08 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 17 Mar 2019 11:24:06 +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