From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UJdNJTywa2NpAQAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 14:50:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aKA2JTywa2PYRQAA9RJhRA (envelope-from ) for ; Wed, 09 Nov 2022 14:50:52 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 28A46DFE9 for ; Wed, 9 Nov 2022 14:50:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oslTB-0000OP-VN; Wed, 09 Nov 2022 08:50:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oslSu-0000M9-FI for guix-patches@gnu.org; Wed, 09 Nov 2022 08:50:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oslSt-0000Nh-4c for guix-patches@gnu.org; Wed, 09 Nov 2022 08:50:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oslSt-0003XJ-0b for guix-patches@gnu.org; Wed, 09 Nov 2022 08:50:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Nov 2022 13:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59132 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 59132@debbugs.gnu.org Received: via spool by 59132-submit@debbugs.gnu.org id=B59132.166800174813484 (code B ref 59132); Wed, 09 Nov 2022 13:50:02 +0000 Received: (at 59132) by debbugs.gnu.org; 9 Nov 2022 13:49:08 +0000 Received: from localhost ([127.0.0.1]:39334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oslS0-0003VO-C2 for submit@debbugs.gnu.org; Wed, 09 Nov 2022 08:49:08 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oslRx-0003Us-TZ for 59132@debbugs.gnu.org; Wed, 09 Nov 2022 08:49:06 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3875A5C01B5; Wed, 9 Nov 2022 08:48:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 09 Nov 2022 08:48:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :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=1668001739; x= 1668088139; bh=WKKobn3/lPZYdoKEpS641ygKF7Gpw/ko+tZrKA+asdk=; b=S kyeZiJdaYWJs4/S2J9C8KywZjXzn1uku7R8QFP8Pykg/6NSLgkmrQbaWZ05+w/Zn TchrAHrbExiMPmnJBJG2jSotdgK4btgOu9sLfxZ7RKnP72D4zF7kLdVzaK1BN8Bp 7YKZ/bFVOBytCSYp4vnWGL/JffPeMPbizgwZBXQrpSTEJpj79JW0m7cy8vT/GcDp Yv1HIsjcinRE2i1SzpVnQ2uoHjhV1TizJSsQa6e81xtL0EnLtwr78jqk0ziEGvPh TULBVpr48OdhlgZl37xr+NrBFwNepDb+qzb/P13+MsqdSVTUWAVLAup1DaitGMt9 isq+OAtyJxulZRYFZwUpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1668001739; x= 1668088139; bh=WKKobn3/lPZYdoKEpS641ygKF7Gpw/ko+tZrKA+asdk=; b=X /HnUJHpaDKRFBx+SRlgA55YSAELv+nuiQ71uNWBqrKOwU2iSWECuWQSahQas8ghL 7zHG13kEb3t03C0L2cTiJPm7sRpt4D2m35JG/M51lG7MnGBj3xOIBPkISQHSWbuJ hEqAnoO6rGqdkTO/N0F633gaEEE4XS86QMNW5OZv7nNgh0xyJa2xii5TlHbQ6TBf XAPjKT3a8C/OytHH6WSdkLZUX23cuxdJkyrzKLfWc6smAaDVH30rjq2mUdkhQBAn WS4RKhjPLuLjrwNzZzYMoH+yK0mm7dGZRoxZflS2rgi1E2YDaS6pOkhKc8Rh4mzE IoxjVQk78LbHy5VRnAgUQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedvgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfvfevfhfhufgjtgfgsehtke ertddtfeejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgr thhtvghrnhepvdekgefgueduvddtgeevtdegkefhvedtjeehhfejffekieegleeuvddvue ekvdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep ihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Nov 2022 08:48:56 -0500 (EST) Message-ID: <96da2673-8ad4-cd7f-cf3a-ce0cef3ca313@dan.games> Date: Wed, 9 Nov 2022 21:48:50 +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 References: <20221108200553.15545-1-i@dan.games> <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> From: dan In-Reply-To: <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668001852; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WKKobn3/lPZYdoKEpS641ygKF7Gpw/ko+tZrKA+asdk=; b=Md16lQ+yBTdOWciscYrvz50owOrMdfPewdvfnYb0E72r3ez6gdbCvnWVSAbaOmlrFRLMmC kZHh6SCLdprMoIoWjDVDoCsummeFE4GhEI4UPLOxdE4HK5mZM4ar/9VaR5pYHFln2SOV3p TZbkkJYOTxtR5jvYMa10dt9ueGFvZSh6yKvnJCATGzycx5s9qTxQm4Ph8QqDi41xJ11kEm eerFw7ULXEBk4prvaAw7rQ+Nz2bZ3klg6Hn92ksCt5QLofUt7O3GxFG1VEUaBeYnT424u7 czC3mIFPKndlY3+2i/nf3Vx3xIg1G+wlV1eZPxCioe9ARhSGk+0o7lV1Slz1cg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668001852; a=rsa-sha256; cv=none; b=WXFl2Z/Kt+anwJZi/fHBjIyd0fzMGRzr9qF0iJqSfMWQw3kWuPIhCCtdSCjx3Sz9pp9V2G QN5QwN9KxGD6zp9L+uUFg6bMlgJ3sybO3UgOwbgz9mZib98guVi3gTMfw8bPjPsTsotIwf Zu1ve6/foSkMb645J8UArXVBXyWn43D7izEcFeCfbx5wYXT75UzA7Wauu2Ed7YyRVbkGMO wdp4wBuNyVbaRsn5QWlQ15Iz3SqiI5I1avRTsPrIVV5LujoUqv+1V8HNMUX4EedIyxktAL FW9MQBF71Yxz6kOwJFrW5x2i/hp24CiHl4kVetfDiHyQQs+q4LiWLguOG0X0uQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm2 header.b="S kyeZiJ"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="X /HnUJH"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.48 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm2 header.b="S kyeZiJ"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="X /HnUJH"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 28A46DFE9 X-Spam-Score: 0.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: R5aZwKgFkgCz Hi Tobias, On 11/9/2022 8:26 PM, Tobias Geerinckx-Rice wrote: > Thanks!  Why is this needed? > > On 2022-11-08 21:05, dan wrote: >> * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR > ^^^^^^^^^^^^^^^^ > There's no reference to this in the actual patch. In my understanding, user level shepherd services need XDG_RUNTIME_DIR to run, and shepherd create a socket under XDG_RUNTIME_DIR/shepherd/. I'm not sure how WSL handle user login, but what we usually do is just type `wsl' in powershell, and it automatically logged into the default account, without prompting for password input. Thus, relying ot elogind or greetd doesn't really help, it's better for us to manually create the directory. There is also a warning on login, and I think it's from shepherd: > 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 Anyway... I wasn't fully sure about if it's the right thing to do, since I'm not familiar enough with both Linux and WSL. But at least this makes user level services usable. If this is the right thing to do, I'll update the patch with explanation included in the commit message. Would like to hear feedback from someone authoritative! -- dan