From unknown Sat Sep 06 02:32:43 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59132 <59132@debbugs.gnu.org> To: bug#59132 <59132@debbugs.gnu.org> Subject: Status: [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Reply-To: bug#59132 <59132@debbugs.gnu.org> Date: Sat, 06 Sep 2025 09:32:43 +0000 retitle 59132 [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on firs= t login. reassign 59132 guix-patches submitter 59132 dan severity 59132 normal tag 59132 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 15:06:14 2022 Received: (at submit) by debbugs.gnu.org; 8 Nov 2022 20:06:14 +0000 Received: from localhost ([127.0.0.1]:38227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUrO-0001vF-1W for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:06:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:37692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUrM-0001v6-Cf for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:06:12 -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 1osUrM-0006CP-1A for guix-patches@gnu.org; Tue, 08 Nov 2022 15:06:12 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osUrJ-0001U6-RM for guix-patches@gnu.org; Tue, 08 Nov 2022 15:06:11 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CBB505C009C for ; Tue, 8 Nov 2022 15:06:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 08 Nov 2022 15:06:08 -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:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1667937968; x=1668024368; bh=I9mKmD+LLH iSgrif2Jobq8s3p8cKxgK/LBvHTgKKQUs=; b=qAIE1NzqMsshEL6T0RrilZ61yz im7IExYg9XCjQDzx9RTBKSqNK0i16zi0toPJgUQwFLNg6XMN5fLpTA9ZcHv4AS0d sknr+6AFMcQgVuMzEis8F99ZG1Pgh9QFMx5kkpp0q2E3j1sq851x90uw/a0Sxv+B g8y+p9O+lj4VlHnSxT+cbSJLHQZQ+PwZ2gRgi5T3agLXqUHML0Uq2a6ff4t5AGhP lBc46lL9BGG1UNhZVWNkwadUqSJWS1KGUD3V3IF1p5f2u5fZaxCjjwouZWALJaVr M/A6iOGipdyFTdAUdBE8J5K6u1RsYbv0fnI6IguwWwuOafhdsXWNOmEei94w== 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 :message-id:mime-version: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=1667937968; x=1668024368; bh=I9mKmD+LLHiSgrif2Jobq8s3p8cK xgK/LBvHTgKKQUs=; b=XAXkYiDh2KVRDle7RbRHejW8EWEPK6N9sNDUxAjXjHRl lB6r3iT5Xyv8Fapq2MQkOXwAkQKq6yrcqAsj3OChx42qgjo0ACWPLFfHcu4RazuW N5/ocJ37J7KTonXkGWvS7NWzsCZU7IMyTtlZMsaUf3d3zvDORljGfHaUkuC4NquH s9CUFdswOE1Vis7JeKT2qhX5OL6Z/i6eQzYCt8IFvPmVnqifgMapgbYBm6aUCABx IcwL9MMFophMXupBOctCcHpm3hPi25wrdOgYdlTThqTIzW1XHDJ0Hmyn4oaoIUQJ xSzjAz2ZTMqLrebvw13BNKrPBy1xI1YeG/sc1vaeNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedtgddufeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgrthht vghrnhepgeejhefggffggfeiheekvdekveetgfejteefuddtfeevtdetuddtfeehhefhtd ehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihes uggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 8 Nov 2022 15:06:07 -0500 (EST) From: dan To: guix-patches@gnu.org Subject: [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Date: Wed, 9 Nov 2022 04:05:53 +0800 Message-Id: <20221108200553.15545-1-i@dan.games> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.25; envelope-from=i@dan.games; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit 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: -2.6 (--) * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR on first login. copyright info --- gnu/system/images/wsl2.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/system/images/wsl2.scm b/gnu/system/images/wsl2.scm index 80c2e775b4..e3e7503da3 100644 --- a/gnu/system/images/wsl2.scm +++ b/gnu/system/images/wsl2.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2022 Alex Griffin ;;; Copyright © 2022 Mathieu Othacehe +;;; Copyright © 2022 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -75,7 +76,11 @@ (define (wsl-boot-program user) (let* ((pw (getpw #$user)) (shell (passwd:shell pw)) (sudo #+(file-append sudo "/bin/sudo")) - (args (cdr (command-line)))) + (args (cdr (command-line))) + (uid (passwd:uid pw)) + (gid (passwd:gid pw)) + (runtime-dir (string-append "/run/user/" + (number->string uid)))) ;; Save the value of $PATH set by WSL. Useful for finding ;; Windows binaries to run with WSL's binfmt interop. (setenv "WSLPATH" (getenv "PATH")) @@ -88,6 +93,11 @@ (define (wsl-boot-program user) MS_REMOUNT #:update-mtab? #f) + ;; create XDG_RUNTIME_DIR for the login user + (unless (file-exists? runtime-dir) + (mkdir runtime-dir) + (chown runtime-dir uid gid)) + ;; Start login shell as user. (apply execl sudo "sudo" "--preserve-env=WSLPATH" base-commit: 96ae718c516a289124a0b91ceeef78b20d187825 -- 2.38.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 15:11:45 2022 Received: (at 59132) by debbugs.gnu.org; 8 Nov 2022 20:11:45 +0000 Received: from localhost ([127.0.0.1]:38237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUwj-00023G-4F for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:11:45 -0500 Received: from knopi.disroot.org ([178.21.23.139]:57002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osUwg-000238-V6 for 59132@debbugs.gnu.org; Tue, 08 Nov 2022 15:11:43 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9105140DD2; Tue, 8 Nov 2022 21:11:41 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kvAfkLRav1et; Tue, 8 Nov 2022 21:11:40 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667938300; bh=3J4aFURb6M5eC4avqyX5KPWEnaOuRO54CWuaxAxexiU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=MgrHtxStml1Aw+/xT1g8lH0T2gBveH58U0DDXZMN7ejL8fb7hn7eHfsHTfEZXEAnR Dl3nQ/8u8SE2VMEHqTwXJN0H2BNBDWuvzSc3mWBwDZ1kdoZ8nQiVVzidk6XlMNQzid B3y4swlq9tkT222cSEZS5L/5g5W9sp7xuIMRFOioBtlpzYcBo0WKU6m2oy+VMeee3K LOud85MojhzCEgN5zPoh5kILHxuwevjcPpIYp3bKjmXamGFu7SAKOm376l4zQNZt3s +ZK0iRLzBRqmDa9gXlKkVj5vTti2dkxQorE2WUWIgUO5viiFsph52pecx5IRZkmNFF 2hlN4KQn8xU3Q== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 08 Nov 2022 20:11:39 +0000 Message-Id: From: "(" To: "dan" , <59132@debbugs.gnu.org> Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. References: <20221108200553.15545-1-i@dan.games> In-Reply-To: <20221108200553.15545-1-i@dan.games> X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue Nov 8, 2022 at 8:05 PM GMT, dan wrote: > * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR on > first login. > > copyright info > --- a/gnu/system/images/wsl2.scm > +++ b/gnu/system/images/wsl2.scm Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: 0.3 (/) On Tue Nov 8, 2022 at 8:05 PM GMT, dan wrote: > * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR = on > first login. > > copyright info > --- a/gnu/system/images/wsl2.scm > +++ b/gnu/system/images/wsl2.scm > @@ -88,6 +93,11 @@ (define (wsl-boot-program user) > MS_REMOUNT > #:update-mtab? #f) > =20 > + ;; create XDG_RUNTIME_DIR for the login user > + (unless (file-exists? runtime-dir) > + (mkdir runtime-dir) > + (chown runtime-dir uid gid)) > + Shouldn't this be handled by elogind/seatd? > ;; Start login shell as user. > (apply execl sudo "sudo" > "--preserve-env=3DWSLPATH" -- ( From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 15:23:47 2022 Received: (at 59132) by debbugs.gnu.org; 8 Nov 2022 20:23:48 +0000 Received: from localhost ([127.0.0.1]:38258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osV8N-0002LQ-DG for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:23:47 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osV8F-0002L2-HJ for 59132@debbugs.gnu.org; Tue, 08 Nov 2022 15:23:46 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A5BE95C00C4; Tue, 8 Nov 2022 15:23:33 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Tue, 08 Nov 2022 15:23:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :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=1667939013; x=1668025413; bh=tMlyS2sA9U /CnUc5jcF7ZCuBZUORiT3FjamnqEdzVZ0=; b=gUFd7bx2udcmdTVG4kabPHuSbR UZlq1gunEXX7N1YOJBCNvRMY9BF1hykVieKK7TGulCD+kph/ZdTg5Q5AYPD8Y8+5 ngOTiueSe8yY5rYmLcXT0jk3qyriJayiyw581USttY0Q3zWu7pAT/RagwR3vTX5C cPrEG0F1NlBVq4eDpemFBEtmNhUjYc7K9z0tyHBjAak52cIURvvnyVWdKYYhKnd9 nIntEcUB60t/EknBWaXHErNVRhrs6tX5q4xdRJyoEcyw9uLUosVdKjhhIGfBaGU5 dnCxo8W9kflnkIg624Ff15tiv5DkaL+rQfXSeM42wLiF6UAaLxp2syk8u2sw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1667939013; x=1668025413; bh=tMlyS2sA9U/CnUc5jcF7ZCuBZUOR iT3FjamnqEdzVZ0=; b=WDww18QY99+fS9uyB4RwMgNwwJkvuGCH97oXOXLq3T2t mHkbyTZ1d4w+22XCEmwpK3UC2p6guothUNA8ZjAHEMfXlqJMVei3BP+q6zuWYbwc 6PCwfasve8drljDzDbMg+pq1Yy3rqJ1+kjDs6wsAMryRlH5ncRXqaolUcTBCNK+V duiHD3xPxlld7vpF203NNomrDoFRPRhisKcWtLV8YcSdu7Dya6dIAMz5Duq08iqc jwb9hlvjfzDqeg4egl8lvADQxBDyI4EoIDOPRCUmnRHC/rbbk9mEWI/sAPYgkwvC HYz+GoUB0x79zHLxeRJT2PetPORNGBp/5SvzO+QY9g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedtgddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgr thhtvghrnhephfeftdfhtdefgeevtddtfeeijedufeefueejteffudettdfhfeeujeevfe evfeffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep ihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 792DEB60086; Tue, 8 Nov 2022 15:23:33 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20221108200553.15545-1-i@dan.games> Date: Tue, 08 Nov 2022 14:23:13 -0600 From: dan To: "(" , 59132@debbugs.gnu.org Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Content-Type: text/plain X-Spam-Score: -0.7 (/) 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: -1.7 (-) On Tue, Nov 8, 2022, at 14:11, ( wrote: >> + ;; create XDG_RUNTIME_DIR for the login user >> + (unless (file-exists? runtime-dir) >> + (mkdir runtime-dir) >> + (chown runtime-dir uid gid)) >> + > > Shouldn't this be handled by elogind/seatd? I'm not familiar with the job of elogind/seatd. I might take a look. Other than that, I'm also not sure if these work on WSL2. -- dan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 15:27:07 2022 Received: (at 59132) by debbugs.gnu.org; 8 Nov 2022 20:27:07 +0000 Received: from localhost ([127.0.0.1]:38262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osVBb-0002QC-4Z for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:27:07 -0500 Received: from knopi.disroot.org ([178.21.23.139]:52692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osVBZ-0002Q2-85 for 59132@debbugs.gnu.org; Tue, 08 Nov 2022 15:27:06 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B2FF640D22; Tue, 8 Nov 2022 21:27:03 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WdX9o5L9KmbB; Tue, 8 Nov 2022 21:27:02 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667939222; bh=axNiPXXXexRYqQcce4SIUEHYrD/FdYTFEQQ1lct93Dk=; h=Date:From:To:Subject:References:In-Reply-To:From; b=O3SL8oQTdo/2tGgyyDDO7er56Vc2m+QqHjXeLUtTOGxEMnI83ZUi2NeLDMvoceuUW LFzcuUXrE3Vi38BtFulBqtPXWTtB1GtCDqLHxMtSz6VZLH7Hz0GVS7xyFF2bv93ctX 3xdfNjFMZXHBS/1o836oXxlQFWFocrNHvs1l/wAuhC0CWH7FP2UP+oQ/269vl2mahR afYYGov9tg18u13vgyDBP+2qleTMCguRu0yRvojMB8Cg5fi/U1hd7SvImN1/ICn1+e LTugyTHYUYv1YAVhuIDN7471/3GXfgI7bUl4KVVeuVw+cIlUjss5P88ZcxL4gRbfYC 6GVLY86g/1aAw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 08 Nov 2022 20:27:02 +0000 Message-Id: From: "(" To: "dan" , <59132@debbugs.gnu.org> Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. References: <20221108200553.15545-1-i@dan.games> In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Heya, On Tue Nov 8, 2022 at 8:23 PM GMT, dan wrote: > I'm not familiar with the job of elogind/seatd. I might take a look. Other than that, I'm also not sure if these work on WSL2. 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? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: 0.3 (/) Heya, On Tue Nov 8, 2022 at 8:23 PM GMT, dan wrote: > I'm not familiar with the job of elogind/seatd. I might take a look. Ot= her than that, I'm also not sure if these work on WSL2. elogind/seatd are tasked with setting up login sessions, which includes cre= ating XDG_RUNTIME_DIR. They probably do work on WSL, since I'm pretty sure deskto= ps do? -- ( From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 15:27:30 2022 Received: (at 59132) by debbugs.gnu.org; 8 Nov 2022 20:27:30 +0000 Received: from localhost ([127.0.0.1]:38265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osVBy-0002Ql-D6 for submit@debbugs.gnu.org; Tue, 08 Nov 2022 15:27:30 -0500 Received: from knopi.disroot.org ([178.21.23.139]:58788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osVBw-0002Qc-C1 for 59132@debbugs.gnu.org; Tue, 08 Nov 2022 15:27:29 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B2D4B409EE; Tue, 8 Nov 2022 21:27:27 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BdgDMB1vV7Y7; Tue, 8 Nov 2022 21:27:26 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1667939246; bh=Fbw0gQ7i8+3vf/iu7bIXIWQmDYgvPmHsSOMY8NSlbu8=; h=Date:Subject:From:To:References:In-Reply-To:From; b=E0lEaNCJfXPQQEt5VVsVEDXy4ZLd/aCdGRGg4yKypRkvkndpBAXI9jg0qXo8ZOKs6 w7Nh3Xf57oGrRQQcV25bADgsH88dHFlvkSdTSH3mBfLSuTj8xTQM4ItSU3Nua0P8Xm 0srhG/fQH2Agk1F+OBIx4d2GSpXeMwqzbvlpfAshMzpdMxIhRWNx4f3xS9lO9yHNCS 5mbVqkMa1GPoOiEOB/GVXoxV/4Ci3RHC5tangxwzOj8djPHswrLDtzIRtPvxN8oUdn 8bNpq2uZ27ExZZw6S29DVwEpEr3AppQ9EUb5A4GZLNSZO+9CUSwGjiWv9Qtf8NidXi PQP2A8nO9LP+Q== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 08 Nov 2022 20:27:26 +0000 Message-Id: Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. From: "(" To: "dan" , <59132@debbugs.gnu.org> References: <20221108200553.15545-1-i@dan.games> In-Reply-To: X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: To be clear, s/desktops/desktop environments/. -- ( Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 FROM_ONE_CHAR Bogus FROM name -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 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: 0.3 (/) To be clear, s/desktops/desktop environments/. -- ( 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 02:24:56 2022 Received: (at 59132) by debbugs.gnu.org; 9 Nov 2022 07:24:56 +0000 Received: from localhost ([127.0.0.1]:38860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfSC-0001mu-Aq for submit@debbugs.gnu.org; Wed, 09 Nov 2022 02:24:56 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:48779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osfSA-0001mf-Ge for 59132@debbugs.gnu.org; Wed, 09 Nov 2022 02:24:55 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0F1795C00C9; Wed, 9 Nov 2022 02:24:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 09 Nov 2022 02:24:48 -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=1667978688; x= 1668065088; bh=7uZYvpLRHMg8QwPkmGJmbSADAybIDDBXq5ww8RJ7phg=; b=V ftDnr5Joy43UzWUMRR5Nx6ZFJCH1BfYvAgbOejXW43AKCIMTGReN2s230NMDxPi/ cSl9coT9PwC+OjocRbHjRhrOQsdx+fAyWK4jaWOpqUf5JbO5alF49l0F0d3uwaXI AmjGFP4G/p/DN1RuykAvWE6+sbcP0MBtS6rwqNSZjzocM5vKZ3k4vEPbINL/HVMP 32kFq5lOBkY083J25CfxVDnhuiYutmnlB5ALR/7QKrVB6ro6CJIFKUHcNOekYVL8 1DZA3e0JfV0X9DUxMl9zQOS0UvY1SmzNsRIRo2Kflq4NmlvyAN+GcMWBUV3hN3jG vH0OoJZjihFUAawxRAmiQ== 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=1667978688; x=1668065088; bh=7 uZYvpLRHMg8QwPkmGJmbSADAybIDDBXq5ww8RJ7phg=; b=ZuAijJlj4h40c48Bf Mtfvh10J5iUgQ3A4d02hKM6HWRwp6xYlt9Vxid3xd1ofqLhfdvDC8U28FCSUO/Yo nMA41JB1+NJXiewa3ZUfk9JMxVMzhVY8HyPGTt/ta5oZLIZH93+TTS/K8NRPtURY V1X7ARMQFxgDDviacB116Waj4hiPfbl3U+UGFKwbxHOyTwNTZN9/PHvToOSt1A27 Fm5vKR+O0ll/eqgLdWRv/B32tC7fwtcdJbv0IpcsXJM/EkzJ8Y3W4OM8u+NDwQzP WpycuZPm5UA4aqW8ahtlnP4WEpEbC4YaJIkxjQ0c94unJ9o5lSY/vLpQLko7Rmu4 npaSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrfedugdduuddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgr thhtvghrnhepueffgffhkeejieeuieffheffheejtdeuheelvdfhueeuueejhfelveejke efvdevnecuffhomhgrihhnpehvohhiughlihhnuhigrdhorhhgnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Nov 2022 02:24:46 -0500 (EST) Message-ID: <397fac84-206d-198d-e838-6f5d6f723998@dan.games> Date: Wed, 9 Nov 2022 15:24:41 +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 Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. Content-Language: en-US To: "(" , 59132@debbugs.gnu.org References: <20221108200553.15545-1-i@dan.games> From: dan 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 searched on the internet and found the manual from Void Linux[1], saying that seatd is not creating XDG_RUNTIME_DIR for login users. [1]: https://docs.voidlinux.org/config/session-management.html#xdg_runtime_dir -- dan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 07:26:59 2022 Received: (at 59132) by debbugs.gnu.org; 9 Nov 2022 12:26:59 +0000 Received: from localhost ([127.0.0.1]:39206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oskAU-0005Qt-PF for submit@debbugs.gnu.org; Wed, 09 Nov 2022 07:26:58 -0500 Received: from tobias.gr ([80.241.217.52]:43596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oskAS-0005Qi-1Q for 59132@debbugs.gnu.org; Wed, 09 Nov 2022 07:26:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=hf6PiHjwij75o Kbbnlqrux6JaGUuCivUOWPR62ZGdqk=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=iz2DpXqT9zccNS6UgN6/XzMUDKo5sfXpK5DLn8erX lcF4BLE2/p9c8bGvC6vakwVSKGqfRafQw5lu9H2DC0uI7WmCR+jcPQBG62Y30qC95cTCnT vd882UT6i+2thI8gNxb1K7KHMymJSiQrjzrQGQ8ZrRaEJD6baqWJKYMMUKeWwV/Vrtur+m adMjwka7pOXJz3+hU6GY7uaSdbh2gCUUIY0a9OoVoPUuar6hsNEOCyBvCk+ajpPUE3y/fT 1f1B4YILbeU/g3Ez2aln2smTQgrn0rlS1NLSMaDKNQWElb/5OB2qqU028DAqNIiHqCTAHa FjZ1nG2tPRwjft/1RL8sQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id c2a27f9b; Wed, 9 Nov 2022 12:26:46 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 09 Nov 2022 13:26:45 +0100 From: Tobias Geerinckx-Rice To: dan Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. In-Reply-To: <20221108200553.15545-1-i@dan.games> References: <20221108200553.15545-1-i@dan.games> Message-ID: <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59132 Cc: 59132@debbugs.gnu.org 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: -1.0 (-) Hi dan, 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. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 08:49:08 2022 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 To: Tobias Geerinckx-Rice References: <20221108200553.15545-1-i@dan.games> <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> From: dan Subject: Re: [bug#59132] [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. In-Reply-To: <4f5c715e9dd8aef023d85615125b9fa9@tobias.gr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 59132 Cc: 59132@debbugs.gnu.org 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 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 18 09:01:05 2022 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: dan , Mathieu Othacehe Subject: Re: bug#59132: [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59132 Cc: Tobias Geerinckx-Rice , 59132@debbugs.gnu.org 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.3 (---) 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! From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 26 03:36:23 2022 Received: (at 59132-done) by debbugs.gnu.org; 26 Dec 2022 08:36:23 +0000 Received: from localhost ([127.0.0.1]:50712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9iy7-0006gp-8l for submit@debbugs.gnu.org; Mon, 26 Dec 2022 03:36:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p9iy4-0006gc-T4 for 59132-done@debbugs.gnu.org; Mon, 26 Dec 2022 03:36:21 -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 1p9ixy-0005NU-Tk; Mon, 26 Dec 2022 03:36:15 -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=r70VKXbxOTq++82DkB3kcP5rIyM3I+saESv5nZ3tFIw=; b=mtvK7hp+imB1N52AAY1R goomsg5Hw7kc/DXYTo+xQEz92fBHfe0fmzlPY0/VaQPvE1RzANU4WdT8RL0CvP/kltxZK7R5lxZ8E PJOuG5KupnsJw4E3yTuD8JGLtzF8hs6lkqiaGOb8oFNx44APudSYEgHtWeBd59hHCDiV272k0kMsZ /CCHCFam+TrsWuPG4ziPv86SqvGqdD0CDkaYZ6kKznm93FHSBz9/N4biAQsEqYm1X6OkgCM4FkdFh OXhie9D68OojYRgvrEiLYKiJJBen7Ekfn/Ykog6Hjy8/54Mkf+5gLX7vQQsB9Bu1N/E3FzhtDAUg9 jzK37CjCw6dfPA==; Received: from [2a01:cb18:832e:5f00:3563:417e:2a38:86d8] (helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9ixy-0002fl-Et; Mon, 26 Dec 2022 03:36:14 -0500 From: Mathieu Othacehe To: dan Subject: Re: bug#59132: [PATCH] system: images: wsl2: Create $XDG_RUNTIME_DIR on first login. References: <20221108200553.15545-1-i@dan.games> Date: Mon, 26 Dec 2022 09:36:10 +0100 In-Reply-To: <20221108200553.15545-1-i@dan.games> (dan's message of "Wed, 9 Nov 2022 04:05:53 +0800") Message-ID: <87v8lypnnp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59132-done Cc: 59132-done@debbugs.gnu.org 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.3 (---) Hello, > * gnu/system/images/wsl2.scm (wsl-boot-program): Create $XDG_RUNTIME_DIR on > first login. I did set the XDG_RUNTIME_DIR variable as well, and applied as c50cd1bbece27097456242f246f89c053e7cc1a2. Thanks, Mathieu From unknown Sat Sep 06 02:32:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 23 Jan 2023 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator