guix-patches
[Top][All Lists]
Advanced

[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: dan
Subject: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login.
Date: Wed, 9 Nov 2022 12:26:12 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 11/9/2022 4:27 AM, ( wrote:
elogind/seatd are tasked with setting up login sessions, which includes creating
XDG_RUNTIME_DIR. They probably do work on WSL, since I'm pretty sure desktops 
do?

i tried the following things:

adding `(syslog-service)' and `(service elogind-service-type)' to the operating-system's service list. and when i login to wsl, it shows the following error:

> sudo: pam_open_session: Error in service module
> sudo: policy plugin failed session initialization

also tried seatd, by adding `(udev-service)' and `(service seatd-service-type)' to the service list. and when logging in, it shows:

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

normally, when logging into wsl, users don't need to type their password. i'm not sure if it related to the issue, but it might perform differently with a normal linux distro.

--
dan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]