From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ICg1FGWQd2NR1wAAbAwnHQ (envelope-from ) for ; Fri, 18 Nov 2022 15:02:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0EckFGWQd2MiEwAA9RJhRA (envelope-from ) for ; Fri, 18 Nov 2022 15:02:13 +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 F1E2B8E9D for ; Fri, 18 Nov 2022 15:02:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow1wU-0001C0-JS; Fri, 18 Nov 2022 09:02:06 -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 1ow1wR-0001Bi-1F for guix-patches@gnu.org; Fri, 18 Nov 2022 09:02:03 -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 1ow1wQ-0006Wn-OV for guix-patches@gnu.org; Fri, 18 Nov 2022 09:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow1wQ-0000Nt-Hv for guix-patches@gnu.org; Fri, 18 Nov 2022 09:02:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Nov 2022 14:02: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: dan , Mathieu Othacehe Cc: Tobias Geerinckx-Rice , 59132@debbugs.gnu.org Received: via spool by 59132-submit@debbugs.gnu.org id=B59132.16687800651390 (code B ref 59132); Fri, 18 Nov 2022 14:02:02 +0000 Received: (at 59132) by debbugs.gnu.org; 18 Nov 2022 14:01:05 +0000 Received: from localhost ([127.0.0.1]:35866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1vU-0000MK-W5 for submit@debbugs.gnu.org; Fri, 18 Nov 2022 09:01:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1vQ-0000Li-R0 for 59132@debbugs.gnu.org; Fri, 18 Nov 2022 09:01:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow1vJ-0006MN-Pg; Fri, 18 Nov 2022 09:00:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=lTkxV8VDhCRe0PhKpxQ9PVh6BAIY5DEqKACY73lNxSY=; b=N5PBtpcEkl1cC+SYTeIP GFeeEAR7pu1Nhq0V4h1SZjINllOq22JUFIIYdasdT13JxzHN1XZVQjElfonDsR1iO+oN3we9R9l0p vR3TCygd3FbMaVoNhuBkp/tDBkjKTUGYIqFXR3F48K245OGqjWkATKTVBEg0fRQv9sCsI0GfYGQI8 5ezfNzhtiHAs07kZS5xQFvuPwoH5w00cRf3y/gbgF1aYgh2XqvDf0rQzYBAFXjr03bMZY8y1uGTQs Rpr+WSh9u/ALkPyEdRUiyX6EpCNMx9jEq1Z21gV+KFwqom711Z+eMjhOIWJLGEkSFKqm+YZT349IR d9PBVajsFxJzHA==; Received: from [193.50.110.147] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow1vI-0005Nq-Jd; Fri, 18 Nov 2022 09:00:52 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20221108200553.15545-1-i@dan.games> <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> <96da2673-8ad4-cd7f-cf3a-ce0cef3ca313@dan.games> Date: Fri, 18 Nov 2022 15:00:49 +0100 In-Reply-To: <96da2673-8ad4-cd7f-cf3a-ce0cef3ca313@dan.games> (dan's message of "Wed, 9 Nov 2022 21:48:50 +0800") Message-ID: <87k03sbbvy.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1668780133; 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=lTkxV8VDhCRe0PhKpxQ9PVh6BAIY5DEqKACY73lNxSY=; b=C2Lg2IF5CwYZhizec8iOZAUcQ2Ke0kx92+RLJIwy3VYB1Tmk3Im3+h3vJUP5/hJhAzD/8k f4WjcK0tKYOBynOQnnGNbKKtMAlq0peryq4AOTX5rMzI5dA6jhQnrTHfIqzQzhKB+leTT5 ypseBt7fa7lVxdwZvfzbHgSOtrD07/0SSP/Mo5n+xI5Hi2Aq7wQkR7D13EO8QTGhx5iDN3 OSyo1+JgBuykNrIBR61Bw5RXAY5U+LaJ8bfg0de9zL10zJit++nxYokA7n/SB242v5iuXA OXdSlmJRyuJCnalkOtn+CexoZXwshVV+dsPfni7uFMdzrkT81qfB+LdAY0O3Ig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668780133; a=rsa-sha256; cv=none; b=bA62w9QRlE7JIgZuxT2zxYnHOJ8kUp7SLOdMqj6UjxipTPh/VmITKeAMDyb/wjg5eIj6pp FKfYNoxYiOSjMy3VoLCVbxq2CgHlNRGKycCSIFKAz3pzQeb/it+dDeuz0bDape88zVbksB Au4vpk77bz0NLgMK0rZNfTjG0NUftw3633ZmK0bf5vvh+iD5SQiJwjy6riel1daY74KrWJ NglKDb8JsQ373T7xH3XuMyZuzlasuPS5yxtNsastnEJBPXQRGSsIQzEqn3Qv7TZ6Skz0Kz sr3iuq5j1mUIfxojFgbrCUHyXAfwD3OkkPgvRSk4mIR3/o3Zr5IDOPWrg7X8Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=N5PBtpcE; dmarc=pass (policy=none) header.from=gnu.org; 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.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=N5PBtpcE; dmarc=pass (policy=none) header.from=gnu.org; 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: F1E2B8E9D X-Spam-Score: -0.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: S3tquGiSZkRa Hi Mathieu, Could you comment on this patch dan submitted? https://issues.guix.gnu.org/59132 Thanks in advance. :-) Ludo=E2=80=99. dan skribis: > Hi Tobias, > > On 11/9/2022 8:26 PM, Tobias Geerinckx-Rice wrote: >> Thanks!=C2=A0 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!