From unknown Sat Aug 16 19:16:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w". Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Feb 2018 12:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30497@debbugs.gnu.org Cc: Danny Milosavljevic X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1518868842613 (code B ref -1); Sat, 17 Feb 2018 12:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Feb 2018 12:00:42 +0000 Received: from localhost ([127.0.0.1]:47548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en1AY-00009o-1y for submit@debbugs.gnu.org; Sat, 17 Feb 2018 07:00:42 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en1AV-00009b-Ok for submit@debbugs.gnu.org; Sat, 17 Feb 2018 07:00:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en1AP-00042B-QP for submit@debbugs.gnu.org; Sat, 17 Feb 2018 07:00:34 -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.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1en1AP-000425-Nc for submit@debbugs.gnu.org; Sat, 17 Feb 2018 07:00:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1en1AO-00020v-KI for guix-patches@gnu.org; Sat, 17 Feb 2018 07:00:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1en1AL-0003zd-JN for guix-patches@gnu.org; Sat, 17 Feb 2018 07:00:32 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:55094) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1en1AL-0003y9-Cx for guix-patches@gnu.org; Sat, 17 Feb 2018 07:00:29 -0500 Received: from dayas.3.home (178.113.229.194.wireless.dyn.drei.com [178.113.229.194]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 7A43733601B0; Sat, 17 Feb 2018 13:00:26 +0100 (CET) From: Danny Milosavljevic Date: Sat, 17 Feb 2018 13:00:22 +0100 Message-Id: <20180217120022.696-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.15.1 Tags: patch X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) * gnu/services/xorg.scm (slim-shepherd-service): Make the logged-in session show up in "w". --- gnu/services/xorg.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 50af2408b..b73dbe0d7 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -467,6 +467,8 @@ authfile /var/run/slim.auth login_cmd exec " xinitrc " %session sessiondir /run/current-system/profile/share/xsessions session_msg session (F1 to change): +sessionstart_cmd " sessreg "/bin/sessreg -a -l $DISPLAY %user +sessionstop_cmd " sessreg "/bin/sessreg -d -l $DISPLAY %user halt_cmd " shepherd "/sbin/halt reboot_cmd " shepherd "/sbin/reboot\n" From unknown Sat Aug 16 19:16:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30497] [PATCH] services: slim: Make the logged-in session show up in "w". Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Feb 2018 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic , 30497@debbugs.gnu.org Received: via spool by 30497-submit@debbugs.gnu.org id=B30497.151888179226129 (code B ref 30497); Sat, 17 Feb 2018 15:37:02 +0000 Received: (at 30497) by debbugs.gnu.org; 17 Feb 2018 15:36:32 +0000 Received: from localhost ([127.0.0.1]:48450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en4XQ-0006nN-9E for submit@debbugs.gnu.org; Sat, 17 Feb 2018 10:36:32 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:35531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en4XO-0006nF-Eu for 30497@debbugs.gnu.org; Sat, 17 Feb 2018 10:36:30 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3C475209FC; Sat, 17 Feb 2018 10:36:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sat, 17 Feb 2018 10:36:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=BaKoQ8aU2duulh4zoYR6sP9qp2WopZaybgKhvAGSJ7A=; b=UshMuzC0 wRf/N6XdajccHwVI04hx1hs2+LtxJ030Ovcf+GgrBj8eaHpx+vm1i7bA24sGnGtF R5lOspsWDw5RrgEzX3TKRXALiD2F8XcczlAOD5fWWGONsFnYZmZWL6aXW3BYqQ7y ss8Qtu54CmcWj1PDYyCfz8DdGtSLkZmofEkMq0sJSgIedbIqTRvQmUs2P4lv0GIT E+E9jJtu5M9R7REKDwV3brzOywp3koXFjhwZJ1NUVjl0/K3cT0dnlna6MHv+2cG9 HIAN8FZB1cIKP7h59BTeKpELRTsAcZV9nYewZGHrwX706NHfcQbMubtsum+co/gj OW29prUU0LHWUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=BaKoQ8aU2duulh4zoYR6sP9qp2Wop ZaybgKhvAGSJ7A=; b=l8e4LNMWWmg3eOIRFkyp5rg5oTTO+8WcoUq2T49OLoZwQ +I6iVwWtaWMiIOB3diOrJAfExO2ljzgyVcj0NOzJoQ7k+G87vzLdZtrls58osnPJ A079H8Xh8HibmULYybiZLQ7kGVJ30DYAHwEVQwlum1VyZ2SUxibesf57M+9UhkBH l2Knw9ycNqHLfpe69yCa7PJF1BHuppr5eJZnQK2GQV8p0X9+aUkNBz8N6uSR5G+A L7UGoCwnt/ykDCfjceVTrXfu1Y3INU9NYxhKArC1wS/GruSuwNzxxxvg2BHTJiHq z7r23KND+H4r5tVV+jItL80SEos6ULWWCoG0fD6+Q== X-ME-Sender: Received: from localhost (ip-86-49-250-168.net.upcbroadband.cz [86.49.250.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 9AE9A24547; Sat, 17 Feb 2018 10:36:29 -0500 (EST) From: Marius Bakke In-Reply-To: <20180217120022.696-1-dannym@scratchpost.org> References: <20180217120022.696-1-dannym@scratchpost.org> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Sat, 17 Feb 2018 16:36:28 +0100 Message-ID: <87zi47typv.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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.7 (/) --=-=-= Content-Type: text/plain Danny Milosavljevic writes: > * gnu/services/xorg.scm (slim-shepherd-service): Make the logged-in session > show up in "w". Nit-pick: Instead of reusing the commit title here, it would be better to mention what is being done, e.g. "Use SESSREG to register X11 session". [...] > diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm > index 50af2408b..b73dbe0d7 100644 > --- a/gnu/services/xorg.scm > +++ b/gnu/services/xorg.scm > @@ -467,6 +467,8 @@ authfile /var/run/slim.auth > login_cmd exec " xinitrc " %session > sessiondir /run/current-system/profile/share/xsessions > session_msg session (F1 to change): > +sessionstart_cmd " sessreg "/bin/sessreg -a -l $DISPLAY %user > +sessionstop_cmd " sessreg "/bin/sessreg -d -l $DISPLAY %user I'm surprised that this works. I would have expected sessreg to be unbound in this context, and that it would have to be added to the record similar to xauth and startx. However I suspect it may be better to add it to the record regardless, to stay consistent and allow overriding it. WDYT? This is a change that affects most GuixSD users, so we better not break anything here :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqIS/wACgkQoqBt8qM6 VPqHDAgAi8UihyG1UBr8gjk027BPTyiiY7acqsvAJRSGtBvRY5eAqAYTxhDDWIFP esNh4M8xeoWBDIkMjJjJg+Ws9Xb7F25HXRK72NIf6NPND7Uc+nPQi5hwjyGWzQbE Wkd1TsI/rxF4vKEzTBjra/ra56U3ylDUFh5mh5EX0mUFgBbwmJqWNsyYCeKoAwIY txKx2k70m40Ga8NTotOz78LpRatfu9eh2oMpMqZ5xn7s8lA7Kck28ek3oL4DuAWH zqbo50r4oewgSK5dEI8o7oyJiPpCm0LYp1eKiyCygTPbsdAmw9i/1TVHpe2xNIYz e2i5P28QpNE3otLlJCgkTT4F/Okd4g== =rYl+ -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 19:16:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30497] [PATCH v2] services: slim: Make the logged-in session show up in "w". Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Feb 2018 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 30497@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 30497-submit@debbugs.gnu.org id=B30497.151888526131854 (code B ref 30497); Sat, 17 Feb 2018 16:35:01 +0000 Received: (at 30497) by debbugs.gnu.org; 17 Feb 2018 16:34:21 +0000 Received: from localhost ([127.0.0.1]:48518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en5RN-0008Hi-HI for submit@debbugs.gnu.org; Sat, 17 Feb 2018 11:34:21 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:37802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1en5RL-0008HX-KY for 30497@debbugs.gnu.org; Sat, 17 Feb 2018 11:34:20 -0500 Received: from dayas.3.home (178.113.229.194.wireless.dyn.drei.com [178.113.229.194]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 7934533602D4; Sat, 17 Feb 2018 17:34:17 +0100 (CET) From: Danny Milosavljevic Date: Sat, 17 Feb 2018 17:34:12 +0100 Message-Id: <20180217163412.614-1-dannym@scratchpost.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180217120022.696-1-dannym@scratchpost.org> References: <20180217120022.696-1-dannym@scratchpost.org> Tags: patch X-Spam-Score: -0.7 (/) 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.7 (/) * gnu/services/xorg.scm (slim-shepherd-service): Use SESSREG to register X11 session. --- gnu/services/xorg.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 50af2408b..ea8433af3 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -437,7 +437,9 @@ desktop session from the system or user profile will be used." (auto-login-session slim-configuration-auto-login-session (default #f)) (startx slim-configuration-startx - (default (xorg-start-command)))) + (default (xorg-start-command))) + (sessreg slim-configuration-sessreg + (default sessreg))) (define (slim-pam-service config) "Return a PAM service for @command{slim}." @@ -454,7 +456,8 @@ desktop session from the system or user profile will be used." (xauth (slim-configuration-xauth config)) (startx (slim-configuration-startx config)) (shepherd (slim-configuration-shepherd config)) - (theme-name (slim-configuration-theme-name config))) + (theme-name (slim-configuration-theme-name config)) + (sessreg (slim-configuration-sessreg config))) (mixed-text-file "slim.cfg" " default_path /run/current-system/profile/bin default_xserver " startx " @@ -467,6 +470,8 @@ authfile /var/run/slim.auth login_cmd exec " xinitrc " %session sessiondir /run/current-system/profile/share/xsessions session_msg session (F1 to change): +sessionstart_cmd " sessreg "/bin/sessreg -a -l $DISPLAY %user +sessionstop_cmd " sessreg "/bin/sessreg -d -l $DISPLAY %user halt_cmd " shepherd "/sbin/halt reboot_cmd " shepherd "/sbin/reboot\n" From unknown Sat Aug 16 19:16:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#30497] [PATCH v2] services: slim: Make the logged-in session show up in "w". Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Feb 2018 21:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30497 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Cc: 30497@debbugs.gnu.org Received: via spool by 30497-submit@debbugs.gnu.org id=B30497.151907567211150 (code B ref 30497); Mon, 19 Feb 2018 21:28:01 +0000 Received: (at 30497) by debbugs.gnu.org; 19 Feb 2018 21:27:52 +0000 Received: from localhost ([127.0.0.1]:51745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ensyV-0002tk-Rw for submit@debbugs.gnu.org; Mon, 19 Feb 2018 16:27:52 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:58920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ensyT-0002tc-Tc for 30497@debbugs.gnu.org; Mon, 19 Feb 2018 16:27:50 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5A5C611963; Mon, 19 Feb 2018 22:27:49 +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 xn3lBsD0r2XL; Mon, 19 Feb 2018 22:27:48 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9A4061193F; Mon, 19 Feb 2018 22:27:48 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180217120022.696-1-dannym@scratchpost.org> <20180217163412.614-1-dannym@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 =?UTF-8?Q?Vent=C3=B4se?= an 226 de la =?UTF-8?Q?R=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: Mon, 19 Feb 2018 22:27:48 +0100 In-Reply-To: <20180217163412.614-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Sat, 17 Feb 2018 17:34:12 +0100") Message-ID: <878tboekkr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) 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 (+) Danny Milosavljevic skribis: > * gnu/services/xorg.scm (slim-shepherd-service): Use SESSREG to register = X11 > session. Please mention the new field in , and also add it to doc/guix.texi. If you=E2=80=99ve confirmed that it works for you, OK for master. Thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 20 15:21:31 2018 Received: (at control) by debbugs.gnu.org; 20 Feb 2018 20:21:31 +0000 Received: from localhost ([127.0.0.1]:53249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoEPr-0007qT-J5 for submit@debbugs.gnu.org; Tue, 20 Feb 2018 15:21:31 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:54980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoEPn-0007qH-Go for control@debbugs.gnu.org; Tue, 20 Feb 2018 15:21:28 -0500 Received: from localhost (77.118.162.106.wireless.dyn.drei.com [77.118.162.106]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 948D633604D2 for ; Tue, 20 Feb 2018 21:21:25 +0100 (CET) Date: Tue, 20 Feb 2018 21:21:20 +0100 From: Danny Milosavljevic To: Message-ID: <20180220212120.747099ff@scratchpost.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 30497 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 30497 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 0.0 TVD_SPACE_RATIO No description available. 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject close 30497