GNU bug report logs - #59132
[PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login.

Previous Next

Package: guix-patches;

Reported by: dan <i <at> dan.games>

Date: Tue, 8 Nov 2022 20:07:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: "(" <paren <at> disroot.org>
To: "dan" <i <at> dan.games>, <59132 <at> debbugs.gnu.org>
Subject: Re: [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"

    -- (




This bug report was last modified 2 years and 226 days ago.

Previous Next


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