GNU bug report logs - #70085
[PATCH] home: services: add newline to XDG_RUNTIME_DIR warning

Previous Next

Package: guix-patches;

Reported by: Richard Sent <richard <at> freakingpenguin.com>

Date: Sat, 30 Mar 2024 01:13:02 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70085 in the body.
You can then email your comments to 70085 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to , guix-patches <at> gnu.org:
bug#70085; Package guix-patches. (Sat, 30 Mar 2024 01:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Richard Sent <richard <at> freakingpenguin.com>:
New bug report received and forwarded. Copy sent to , guix-patches <at> gnu.org. (Sat, 30 Mar 2024 01:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Richard Sent <richard <at> freakingpenguin.com>
To: guix-patches <at> gnu.org
Cc: Richard Sent <richard <at> freakingpenguin.com>
Subject: [PATCH] home: services: add newline to XDG_RUNTIME_DIR warning
Date: Fri, 29 Mar 2024 21:10:35 -0400
* 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(-)

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

base-commit: d67e4f0f9b10c7ddac8fb0ca68cbf1d6ad0a6e5d
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70085; Package guix-patches. (Thu, 08 Aug 2024 18:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 70085 <at> debbugs.gnu.org (full text, mbox):

From: Fabio Natali <me <at> fabionatali.com>
To: 70085 <at> debbugs.gnu.org
Subject: "Review" and gentle bump of 70085
Date: Thu, 08 Aug 2024 19:04:26 +0100
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.




Information forwarded to guix-patches <at> gnu.org:
bug#70085; Package guix-patches. (Sat, 28 Sep 2024 17:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 70085 <at> debbugs.gnu.org (full text, mbox):

From: Attila Lendvai <attila <at> lendvai.name>
To: "70085 <at> debbugs.gnu.org" <70085 <at> debbugs.gnu.org>
Subject: a less gentle reminder...
Date: Sat, 28 Sep 2024 17:36:23 +0000
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?

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Discipline must come through liberty. […] We do not consider an individual disciplined only when he has been rendered as artificially silent as a mute and as immovable as a paralytic. He is an individual annihilated, not disciplined.”
	— Maria Montessori (1870–1952), 'The Montessori Method'





Information forwarded to guix-patches <at> gnu.org:
bug#70085; Package guix-patches. (Sun, 29 Sep 2024 14:43:02 GMT) Full text and rfc822 format available.

Message #14 received at 70085 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Attila Lendvai <attila <at> lendvai.name>
Cc: "70085 <at> debbugs.gnu.org" <70085 <at> debbugs.gnu.org>
Subject: Re: [bug#70085] a less gentle reminder...
Date: Sun, 29 Sep 2024 22:40:23 +0800
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?




Reply sent to Hilton Chain <hako <at> ultrarare.space>:
You have taken responsibility. (Sun, 29 Sep 2024 14:43:05 GMT) Full text and rfc822 format available.

Notification sent to Richard Sent <richard <at> freakingpenguin.com>:
bug acknowledged by developer. (Sun, 29 Sep 2024 14:43:05 GMT) Full text and rfc822 format available.

Message #19 received at 70085-done <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Richard Sent <richard <at> freakingpenguin.com>
Cc: Attila Lendvai <attila <at> lendvai.name>, Fabio Natali <me <at> fabionatali.com>,
 70085-done <at> debbugs.gnu.org
Subject: Re: [bug#70085] [PATCH] home: services: add newline to
 XDG_RUNTIME_DIR warning
Date: Sun, 29 Sep 2024 22:38:24 +0800
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!




Information forwarded to guix-patches <at> gnu.org:
bug#70085; Package guix-patches. (Mon, 30 Sep 2024 07:49:26 GMT) Full text and rfc822 format available.

Message #22 received at 70085 <at> debbugs.gnu.org (full text, mbox):

From: Attila Lendvai <attila <at> lendvai.name>
To: Hilton Chain <hako <at> ultrarare.space>
Cc: "70085 <at> debbugs.gnu.org" <70085 <at> debbugs.gnu.org>
Subject: Re: [bug#70085] a less gentle reminder...
Date: Mon, 30 Sep 2024 07:47:19 +0000
> > 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.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“It is by logic that we prove, but by intuition that we discover.”
	— Henri Poincaré (1854–1912)





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 28 Oct 2024 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.