home container: XDG_RUNTIME_DIR doesn't exists, on-first-login script won't execute anything.

  • Open
  • quality assurance status badge
Details
One participant
  • Mikhail Tsykalov
Owner
unassigned
Submitted by
Mikhail Tsykalov
Severity
normal
M
M
Mikhail Tsykalov wrote on 27 Dec 2023 11:43
(address . bug-guix@gnu.org)
3c55270c-0561-4573-875a-5bdbe346c3e8@gmail.com
When running "guix home container test-config.scm" (attached) the
following warning appears on screen:

warning: 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'

I don't know if on-first-login does anything useful when run in the
container, but the warning looks scary.

A lot of users don't hit it because they run shepherd which creates
XDG_RUNTIME_DIR in the process of creating a command socket.

I think that "guix home container" should create XDG_RUNTIME_DIR by
itself, since there is no logind in the container.

This warning was discussed before in https://issues.guix.gnu.org/56758.

There was also this IRC discussion
file this bugreport.
Attachment: file
(use-modules (gnu home) (gnu services) (gnu home services shells)) (home-environment (services (list (service home-bash-service-type))))
?