From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 CCgGFSikmGMCRAEAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 17:11:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mFAlFSikmGOcdAEA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 17:11:20 +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 039988CAA for ; Tue, 13 Dec 2022 17:11:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p57s9-0007fa-V8; Tue, 13 Dec 2022 11:11:13 -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 1p57ry-0007dv-1s for guix-patches@gnu.org; Tue, 13 Dec 2022 11:11:02 -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 1p57rx-0000sG-QL for guix-patches@gnu.org; Tue, 13 Dec 2022 11:11:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p57rx-0005lN-Lf for guix-patches@gnu.org; Tue, 13 Dec 2022 11:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59983] [PATCH] home: Let user configure XDG base directories. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Dec 2022 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59983 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: ludo@gnu.org, antero@mailbox.org, 59983@debbugs.gnu.org X-Debbugs-Original-Cc: ludo@gnu.org, Antero Mejr , Antero Mejr via Guix-patches via , 59983@debbugs.gnu.org Received: via spool by 59983-submit@debbugs.gnu.org id=B59983.167094785622147 (code B ref 59983); Tue, 13 Dec 2022 16:11:01 +0000 Received: (at 59983) by debbugs.gnu.org; 13 Dec 2022 16:10:56 +0000 Received: from localhost ([127.0.0.1]:33047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p57rr-0005l9-J7 for submit@debbugs.gnu.org; Tue, 13 Dec 2022 11:10:55 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]:40576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p57rp-0005kk-DU for 59983@debbugs.gnu.org; Tue, 13 Dec 2022 11:10:54 -0500 Received: from smtp2.mailbox.org (unknown [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4NWk4L011lz9sWX; Tue, 13 Dec 2022 17:10:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1670947842; h=from:from: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; bh=QBkXSU1S9n9Oh8Fe5AvZAUJva/PUMk6OE4UKo4ZonP8=; b=Q7/Ubw8pEbCWITOnEJbKXiAQqVqtMNXWXIBoKPC+h/FuJTtumo+f1tKmJ29YmFIrdpnK0r rWBf+e335++aAZy5NyDUKwZ8xrj2RKlJEMdHaoIYhQSSsfFnWfSiLhVx3zH0sB8dbqhqwv +KhMCWRQI3Q9o9EUa+21Rlv+RQbwseT/tMjIzP2OP7AtPA30G0xdsyM2SXVYXKW1LcNLt9 ZNLkxjj1YtNICtVzLYfDvO9mBIBLUV+LZ4+du3NjNnRp0J2aL9oWAjVXWxr8H7GyYVj0y4 4vvRrMmU3X6tHGxP5tOjwk6OmUj7lPk4m7msSyhldLVE0Ow6T0n4G/KXpZTI6w== References: <20221212030049.4725-1-antero@mailbox.org> <87cz8o9bgz.fsf@trop.in> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1670947837; h=from:from: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; bh=QBkXSU1S9n9Oh8Fe5AvZAUJva/PUMk6OE4UKo4ZonP8=; b=ITu1KOgOyk61xjwDzNhlu3fl7v+NPyOjStleSPx6bU7Nvuyedcioc8dMADqs6zBSymUp/A 0JnJU30zK0k0obm1dr3caNaVefxCNTvcAQrHMsrWB3WSsjGeWHi2wt5tZyf/iSLBPO2ZjJ VIRttp8Ql2LbNiXXMgNIj5NX/Vz08nbYdQr4SGmgp+FYVFkyHu0NW/7AsIQZU0r8q+fio9 uF74tnTquDKlR5TFCi0xbnPI/p0AYiWwHSMyJDiRHZQ2AS1e3Z+VsuMUAvMNeEtcITaOfl TsTDwwPP2TH7sOa8tvGkSvc+4Y6UeY9K4/PNKqLFJqaFbiSNUvjT0B22tIuoDQ== Date: Tue, 13 Dec 2022 15:53:23 +0000 In-reply-to: <87cz8o9bgz.fsf@trop.in> Message-ID: <87y1rbthce.fsf@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-MBO-RS-ID: 850fe4be9cebad7cccf X-MBO-RS-META: sicw3i91jy391si6ts9ygk7miah8w1er 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: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670947879; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=QBkXSU1S9n9Oh8Fe5AvZAUJva/PUMk6OE4UKo4ZonP8=; b=UO8wThcvg/zh9xwKQwKjRceeLLcgY/9OwIsNJmHysr2CTjR5Xjh+KSPCTbbiFgND6olaN7 TgBDE298rDOR3ajs/G5xPnUhdtuTDOa3euyn5caKQekmf94csHBPx1/qCqo1xOJbxAtU7R 8n6h6NmSRVEbWTC1rBZAUwir4xJogv9/8+GxBQyEQGq+3L3p0916wJC5OmPvKIHqfZJH8M cRzvawWD5iPdnN1T4gBfjiKCuH+E+PESXUgRHhusM+xLaOr5LjmDeuUohXqJ63QjTYJPW7 sfj+RSCQA+kUolLYT/jPIqhGqjDrTrqnOWlDIdUEOaoHfqrKqfmeO7lieou0Tg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="Q7/Ubw8p"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ITu1KOgO; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670947879; a=rsa-sha256; cv=none; b=LCwntzX7M4patRQlANLhhkq0lHram9SHuvK/GkqxsaZ8O1Ch0uOMNSqcDfe2wpjZDOD6My xrgOh2TQEjlGDT/bI5rhqDz+Z0IOvmX/mGy95FxMh5e/RLUMDthYO8XLb/Y+t7mKc7L4/J 6SNydlscCUKUQWPcynLvbuu/ULtSeBZ9BVB5SmFefByjmywkKH47TuvrXIynMZHImfXCU/ s30S1/gXEsrdwKLeWTqEEQ5Spj3tgGeNvVUf4BNiXlHZ6HL1PFpkzshC4kr0n2uSq6ctLm N2JOK8PiqB1qKW5lG1/e6zHBp1hk6W09HjLk2wr7WucIsRLr2eu4TaXP43gLQQ== X-Migadu-Spam-Score: -2.07 X-Spam-Score: -2.07 X-Migadu-Queue-Id: 039988CAA X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="Q7/Ubw8p"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ITu1KOgO; 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"; dmarc=pass (policy=none) header.from=gnu.org X-TUID: Ln5uamrXrxEu Andrew Tropin writes: > There is no way to understand upfront if directory containing > XDG_RUNTIME_DIR is writable and this is why it's a good idea to delegate > initialization of it to external thing and never try to create it here, > even if it has non-default value. Thank you for the snippet, that's a much better way of fixing my issue. I still think guix home should (by default) be able to use all its features without the requirement of having external programs installed. For example, suppose you have a server that you want to set up your home environment on, for when you login to do sysadmin tasks. That server wouldn't have %desktop-services (elogind), nor would it have a custom greeter like greetd. So XDG_RUNTIME_DIR will be unset. If XDG_RUNTIME_DIR does not exist, can we make a fallback path to have guix home put the shepherd socket and on-first-login-executed flag file in ~/.local/var/run (or somewhere else writable) instead?