From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 23:26:29 2022 Received: (at 59132) by debbugs.gnu.org; 9 Nov 2022 04:26:29 +0000 Received: from localhost ([127.0.0.1]:38640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oscfU-0005To-Rx for submit@debbugs.gnu.org; Tue, 08 Nov 2022 23:26:29 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:46999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oscfS-0005Ta-A4 for 59132@debbugs.gnu.org; Tue, 08 Nov 2022 23:26:27 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 81BA13200A2A; Tue, 8 Nov 2022 23:26:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 08 Nov 2022 23:26:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1667967979; x= 1668054379; bh=RqAd3bP0W5ZunY8SadS3R3ezW/wIEAvekaZC24AB7FM=; b=w HE+bP9u1zSrjF3lw5L13+GEs6oEVd+gSmwGj4Xow1eMkp0rci2SMFGaczufNf7bd HD1hat+VgvWY2gbyDIyidoj8gxK3f4lCdMTLYSCgVPbiul8tosjjJOyTcdZPPtd+ aMC5Nd2Y6UmgSdhG9vx3IXbTYfQkRuYPJH9HOOguCP0CYwM37mq6+pKTksTdmnEY CH8UpXHlvaUqL/XUaT2mQB1PkohGKHy/Iy8H0Djr90ECl+DMBQSY+MptRtBee0kv GrwhdBNEUQvfGEipIBrSoaie+iUlE92pNRrcLWr7ISxckTmIkxC/9k1ME5787bjV zT3nNGmwxhStVzfR6vtOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1667967979; x=1668054379; bh=R qAd3bP0W5ZunY8SadS3R3ezW/wIEAvekaZC24AB7FM=; b=MDy6vdH+ziR6ZOw1m 6F2ZAeNPxT11d9JdM+rnRNuXVRgi/LSzu2MlUXSqwfbbw7vx9CfIKU1fXEduP4+E PQtaDdzokGwXX1b6MNKxbjmegDrSRDYHXILqIKi4RkBeYN90sg8ijSEUPTAMcCcK ZaHHwfndti/5gVWO+5qsB91o0srAeMOht3msQRPEMPWfxk9L4S8sYkwLM9YnHD+F YkKExPjtj12oTfy71f6Dn3AvjbaVPS25BLzr22PNLaCj8Vv+FVK7lELmazKsdP8h 40uJ61dnKB+3JFswv6TQaETGTz0bG79yHAcKHwsUjqLP7fjGdatubb3I5o6OXmcT v4nLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedugdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvfhfhffujggtgfesthejre dttdefjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrght thgvrhhnpeejhfdtkeevheeuudelgfejieeivdetleffuedugfetudelieevudeiueehgf ejueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehi segurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 8 Nov 2022 23:26:17 -0500 (EST) Message-ID: <031d4167-c217-06f7-2ea2-801781ab41c6@dan.games> Date: Wed, 9 Nov 2022 12:26:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US To: "(" , 59132@debbugs.gnu.org References: <20221108200553.15545-1-i@dan.games> From: dan Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 59132 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) 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