Message ID | 06b44aeb449a5335f12e1a4774d8a3222d87bf8c.1711761035.git.richard@freakingpenguin.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3009527BBEA; Sat, 30 Mar 2024 01:13:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5E49627BBE9 for <patchwork@mira.cbaines.net>; Sat, 30 Mar 2024 01:13:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rqNHO-0000Zt-Db; Fri, 29 Mar 2024 21:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rqNHJ-0000Zb-Bc for guix-patches@gnu.org; Fri, 29 Mar 2024 21:13:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rqNHJ-0000yW-2U for guix-patches@gnu.org; Fri, 29 Mar 2024 21:13:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rqNHK-0007M8-BX for guix-patches@gnu.org; Fri, 29 Mar 2024 21:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70085] [PATCH] home: services: add newline to XDG_RUNTIME_DIR warning Resent-From: Richard Sent <richard@freakingpenguin.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: , guix-patches@gnu.org Resent-Date: Sat, 30 Mar 2024 01:13:02 +0000 Resent-Message-ID: <handler.70085.B.171176117828265@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70085 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70085@debbugs.gnu.org Cc: Richard Sent <richard@freakingpenguin.com>, ( <paren@disroot.org>, Andrew Tropin <andrew@trop.in>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Tanguy Le Carrour <tanguy@bioneland.org> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: ( <paren@disroot.org>, Andrew Tropin <andrew@trop.in>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Tanguy Le Carrour <tanguy@bioneland.org> Received: via spool by submit@debbugs.gnu.org id=B.171176117828265 (code B ref -1); Sat, 30 Mar 2024 01:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Mar 2024 01:12:58 +0000 Received: from localhost ([127.0.0.1]:43656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rqNHF-0007Lo-RU for submit@debbugs.gnu.org; Fri, 29 Mar 2024 21:12:58 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <richard@freakingpenguin.com>) id 1rqNHE-0007LX-Ea for submit@debbugs.gnu.org; Fri, 29 Mar 2024 21:12:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard@freakingpenguin.com>) id 1rqNH5-0000YK-87 for guix-patches@gnu.org; Fri, 29 Mar 2024 21:12:47 -0400 Received: from mail-108-mta124.mxroute.com ([136.175.108.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard@freakingpenguin.com>) id 1rqNH3-0000wg-Iv for guix-patches@gnu.org; Fri, 29 Mar 2024 21:12:46 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta124.mxroute.com (ZoneMTA) with ESMTPSA id 18e8cea6ea10003bea.001 for <guix-patches@gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 30 Mar 2024 01:12:37 +0000 X-Zone-Loop: 22212619c7bac5352de408376d93f82ee0f942ed8c96 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bHIdPNe/j0yy7Kq9G/YsC09eaE0BV6zzjPyYZie9f4c=; b=b1g8Sku3xYbyCJvvvLT3wZIgoh z7lp46rYsDzJYTbpZgreQuMNyMwwzVLfLM4kEbHUp0TR1Bd2oEcCAttHyuCsb3HnAuVYXaV8zoiO4 qJAXhSOW7hrHxul2WFoi8gg7pd81WdVu0zDg3fuC/hT3km7pKNMw9qKvfFGu5BpfMOs2ias/4jfBi Us2DTy0j4Xvk3D0hbaxRutRuhGO8dwwI6cidL6pN5OoV56qDEizcGgguy3YVAJ/a1jKTGyrIRfVRL y7nOdXJRKd8fnXd+EBSqnhfqaKNgThFfv4oKWWgZjzEugG+inBMAQ3QY7HPOP4Z8NOAgNbfFww1I9 3L/jAOkA==; From: Richard Sent <richard@freakingpenguin.com> Date: Fri, 29 Mar 2024 21:10:35 -0400 Message-ID: <06b44aeb449a5335f12e1a4774d8a3222d87bf8c.1711761035.git.richard@freakingpenguin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.124; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta124.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#70085] home: services: add newline to XDG_RUNTIME_DIR warning
|
|
Commit Message
Richard Sent
March 30, 2024, 1:10 a.m. UTC
* gnu/home/services.scm: Add end-of-text newline to warning printed by on-first-login script when XDG_RUNTIME_DIR does not exist. Change-Id: I3bfe2c415f6941fa9a2231ab2a0be53db965053f --- Without this change, the prompt will be pushed to the side by the warning message. Other warnings in the repo follow this convention, so I assume this one should as well. gnu/home/services.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: d67e4f0f9b10c7ddac8fb0ca68cbf1d6ad0a6e5d
Comments
Thanks Richard. This is more of a bump rather than a review as the change itself is a pretty obvious. For what it's worth, I confirm I double-checked the change locally (as I was accidentally experiencing the "XDG_RUNTIME_DIR doesn't exists" warning). All looks good, if someone with commit rights wants to give a final look and push, that'd be cool. Thanks, cheers, Fabio.
it took a few hours of my life to find out that this is the reason my emacs tramp cannot connect to my servers all of a sudden. and this rather straightforward fix is all the way back from march! could someone please push this finally? sidenote for another issue: why is my user missing its $XDG_RUNTIME_DIR ? its value is /run/user/1000, but that dir doesn't exist. my ssh server is dropbear, i switched away from openssh after their last blunder. maybe that is the root cause of the warning?
Hi everyone, On Sat, 30 Mar 2024 09:10:35 +0800, Richard Sent wrote: > > * gnu/home/services.scm: Add end-of-text newline to warning printed by > on-first-login script when XDG_RUNTIME_DIR does not exist. > > Change-Id: I3bfe2c415f6941fa9a2231ab2a0be53db965053f > --- > Without this change, the prompt will be pushed to the side by the > warning message. Other warnings in the repo follow this convention, so > I assume this one should as well. > > gnu/home/services.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied as cbf46d2565112180fe7b316b2530293ed2d3acf3, thanks!
On Sun, 29 Sep 2024 01:36:23 +0800, Attila Lendvai wrote: > > sidenote for another issue: why is my user missing its $XDG_RUNTIME_DIR ? its value is /run/user/1000, but that dir doesn't exist. > > my ssh server is dropbear, i switched away from openssh after their last blunder. maybe that is the root cause of the warning? I suppose the directory should be created by elogind or greetd?
> > sidenote for another issue: why is my user missing its $XDG_RUNTIME_DIR ? its value is /run/user/1000, but that dir doesn't exist. > > > > my ssh server is dropbear, i switched away from openssh after their last blunder. maybe that is the root cause of the warning? > > > I suppose the directory should be created by elogind or greetd? i have no idea about the login infrastructure. with that in mind: i have a suspicion that dropbear lacks some integration (PAM?) that invokes the login services you mentioned above. or maybe it doesn't define some env variable that openssh does? these machines are used as servers to which i log in through ssh (i.e. no logins through the local console). i'll search around and i'll open a new issue if i cannot resolve this.
diff --git a/gnu/home/services.scm b/gnu/home/services.scm index b69cd91203..39c9033ad6 100644 --- a/gnu/home/services.scm +++ b/gnu/home/services.scm @@ -445,7 +445,7 @@ (define (compute-on-first-login-script _ gexps) (warning (G_ "XDG_RUNTIME_DIR doesn't exists, on-first-login script won't execute anything. You can check if xdg runtime directory exists, XDG_RUNTIME_DIR variable is set to appropriate value and manually execute the -script by running '$HOME/.guix-home/on-first-login'")))))))) +script by running '$HOME/.guix-home/on-first-login'~%")))))))) (define (on-first-login-script-entry on-first-login) "Return, as a monadic value, an entry for the on-first-login script