[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on fir
From: |
( |
Subject: |
[bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. |
Date: |
Tue, 08 Nov 2022 20:11:39 +0000 |
On Tue Nov 8, 2022 at 8:05 PM GMT, dan wrote:
> * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR on
> first login.
>
> copyright info
> --- a/gnu/system/images/wsl2.scm
> +++ b/gnu/system/images/wsl2.scm
> @@ -88,6 +93,11 @@ (define (wsl-boot-program user)
> MS_REMOUNT
> #:update-mtab? #f)
>
> + ;; create XDG_RUNTIME_DIR for the login user
> + (unless (file-exists? runtime-dir)
> + (mkdir runtime-dir)
> + (chown runtime-dir uid gid))
> +
Shouldn't this be handled by elogind/seatd?
> ;; Start login shell as user.
> (apply execl sudo "sudo"
> "--preserve-env=WSLPATH"
-- (