From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QEFNDhsBdGO0TgEAbAwnHQ (envelope-from ) for ; Tue, 15 Nov 2022 22:14:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4A9aDRsBdGMnewEAG6o9tA (envelope-from ) for ; Tue, 15 Nov 2022 22:14:03 +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 DF8946BBD for ; Tue, 15 Nov 2022 22:14:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ov3FT-0006LE-5d; Tue, 15 Nov 2022 16:13:39 -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 1ov3FR-0006KY-V2 for guix-devel@gnu.org; Tue, 15 Nov 2022 16:13:38 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ov3FQ-0005iF-8g for guix-devel@gnu.org; Tue, 15 Nov 2022 16:13:37 -0500 Received: by mail-qk1-x731.google.com with SMTP id v8so10393022qkg.12 for ; Tue, 15 Nov 2022 13:13:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=TS0eXOC9mQws9IHKGITNhN1NCxURYwKP4W32XdldOIU=; b=RaZ0X4RYxsecYMgOHQczq3aKzTgSs0zdYR5qJjRmttda5exs3g/N8kYQDYPLxNks2F AiYsEPrWP0c/Jb2he3ElmAcviRABUpLpK1QEaNSTwXdiCpgwig5Sx8KjtAHxRgiasY4r VAOq8O5oH0SEqgPxBg6Fq7LrPnA1yWibDr2bQrqv6kL7LX89vWUoHUWD4QiSlvGcN1qZ /1RXO3ZNqwajPEN7T8bZSLqW674nGmyDxA9AV1zNynhN4hGV8iS13FzJ6vlHUNhTYcN1 ACc3IQBIFPjp61y+ygLA5P1qK38HGMFFsXRqhMbgYQOP6m9+TjBkTf/1/5MP+BK9a3EB VE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=TS0eXOC9mQws9IHKGITNhN1NCxURYwKP4W32XdldOIU=; b=fvo8/2B2IiaGpywj8lnBLSrdMVpVOzCuB57pNKjoNuSpdYkjQfAzpVz13ZMsccO6Wl Os2NbmCv+oA61rWT5BaYIB+i7JJ7x4GLk8WszH7SkF5fPc4sY42s0c0jlXO5CWgrEH7L C14jkiAD6Rr1+cEl6h5J/KVUe4kuIj1G2T7GvqgV7bpjtK4qsh32NGnYZ2vICuer7lqv P2vViCWsTnXBRPW2NZkiW4StFXIs8zTd3VinFjGARZ/KYgnVicHPz1c8LnxysJ4OzjX2 QQdeAc6J/G6GiU7K/TmGv3Y5MWY0fyH+P1mNHlrgKrkI/Y6uwUIsPb88LgYyxgv6bq1h i/cA== X-Gm-Message-State: ANoB5pnU6ePcgSXGfL86nXcYm+PESK4xcqKmuzvOfcr4IntivaOVcnNO auJ16k9B+h3B6r9xT/E886pZ/r2NClU= X-Google-Smtp-Source: AA0mqf4CFyHn/t4hTR963Vb+QPeB02jYzAMZ5t/kMiuVAAqI0ykCUjaiWrRivJpUrAx+Fiy3eMlHxA== X-Received: by 2002:a37:e115:0:b0:6ec:54d6:ea87 with SMTP id c21-20020a37e115000000b006ec54d6ea87mr16592009qkm.245.1668546814697; Tue, 15 Nov 2022 13:13:34 -0800 (PST) Received: from hurd (dsl-151-98.b2b2c.ca. [66.158.151.98]) by smtp.gmail.com with ESMTPSA id f2-20020ac87f02000000b003a4c3c4d2d4sm7798979qtk.49.2022.11.15.13.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 13:13:34 -0800 (PST) From: Maxim Cournoyer To: dan Cc: guix-devel@gnu.org Subject: Re: Should wsl-boot-program create XDG_RUNTIME_DIR? References: <6bad140c-7237-06dd-02d8-3d4968abf09f@dan.games> Date: Tue, 15 Nov 2022 16:13:31 -0500 In-Reply-To: <6bad140c-7237-06dd-02d8-3d4968abf09f@dan.games> (dan's message of "Mon, 7 Nov 2022 14:00:51 +0800") Message-ID: <8735ajncp0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::731; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x731.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-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=1668546842; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=TS0eXOC9mQws9IHKGITNhN1NCxURYwKP4W32XdldOIU=; b=CfBj4xY7ob6828CuxWVSrz2TkV1jpwAaaloCpENsW1gJbRqoeE8+AFHvqrEudW+VXiuZMc BftC4fhCeilpxD1nhCJmVbEN1lAyg8xaFp/NvCtvEePuKFGf2UkSopSKTS4E2cFsJA0+5Q pSlblPZ07c3x+A2iq6SmMyHeex2RBsad8LcU/VhRtk5NuiHY/9KCx3sq6aVM/HQ7tJw7oe TzYFIW8LpI8/jtOxvq2EvebcYF/kkRMpcc6Y/NvREkLNRX6E0JsyZrPYB3YVmfLG7Ylf42 JDPmJzK9jb+Otve3fZpEaQFlTt/F0R3yjsMfkc4xi0tybgOzoTNOj1SY3focnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668546842; a=rsa-sha256; cv=none; b=iBRrx2pGPyqZhHXAfBbGs5px7DKrN02EqVqiFvOnk3TCllhQcpCR9rff9vQYqh4CoX0seu UTgdCQRWjIY7ZR2FsWdGfIfW4Zbvx1nqJmq9O6+hQUMbfFQvhJUmAU5TQeirrQTo9BB5vs 8YgixmLjUs6oNh8/scJfPWg8OaRGfYXm6JgHe3OLLotxHUzHaZlUvNT/QKzntJQwqdGSAy SvrWBG2DQU5QffRvkTX/ItXJC7ms0QsSoWxelTbebEXbAahJfblUN6SiwxWf9qSihh1MjN qsDKXR6eXK/sAFpj8uMs4yqa/ZFqqn9U7F2RsktA7fb4vt/WL7ridPgAGMQ5eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RaZ0X4RY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RaZ0X4RY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DF8946BBD X-Spam-Score: -3.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: 76xDYfEIjadp Hi Dan, dan writes: > Hello guix, > > Even since the WSL image was pushed to master branch, I've been > spending time experimenting with it. It almost runs smoothly, unless > two points: > > 1. when logged in, there is a warning says: >> 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' > > The value of $XDG_RUNTIME_DIR is /run/user/$UID, and the /run/user > directory is empty. I believe the /run directory is created on WSL's > side, and there is a step remounting it[1]. > > This also makes home shepherd services unusable. Although I could > manually create the directory, perhaps it's better if we could just do > the work within `wsl-boot-program', a wrapper for the login shell to > work properly on WSL. If it breaks a valid use case as it seems to be, it should be handled by Guix. A similar problem was fixed for the etc/guix-install.sh installer script; it now defines a default value for XDG_RUNTIME_DIR and others in its sys_create_init_profile function. > 2. WSLg is usable, but the mesa in guix repo doesn't build with d3d12 > gallium driver[2]. So when opening up a GUI software in guix on WSL, > in renders through llvmpipe (using CPU not GPU). > > I'm not sure if building mesa with d3d12 driver enabled by default is > a good idea, or maybe we could create a new package? A variant package would mean rebuilding many things, so if we want to support this use case it seems we'd have to enable d3d12 in our main mesa package and see what are the costs of doing so (increased disk space? new dependencies?). -- Thanks, Maxim