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 8KZqNRx4VmNECAAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 13:33:48 +0200 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 yBJoNRx4VmNecwAA9RJhRA (envelope-from ) for ; Mon, 24 Oct 2022 13:33:48 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9CCE2C1FB for ; Mon, 24 Oct 2022 13:33:48 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CD5B55F959; Mon, 24 Oct 2022 11:21:47 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 516DF5F3CF for ; Mon, 24 Oct 2022 11:21:45 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 51D915FBC0; Mon, 24 Oct 2022 07:21:44 -0400 (EDT) Received: (nullmailer pid 873573 invoked by uid 1000); Mon, 24 Oct 2022 11:21:42 -0000 From: David Bremner To: Dario , notmuch@notmuchmail.org Subject: Re: Consider following XDG base directory specification In-Reply-To: <20221024090957.ekvfaob3bfmpc4ow@dario-arch3> References: <20221024090957.ekvfaob3bfmpc4ow@dario-arch3> Date: Mon, 24 Oct 2022 08:21:42 -0300 Message-ID: <87v8o9wjp5.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: K3OMGX2KZABJPUZQYSJH5VVCR7JSXCK3 X-Message-ID-Hash: K3OMGX2KZABJPUZQYSJH5VVCR7JSXCK3 X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666611228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=DC7WryA4Elgk9KosrYlplasWZINuQrfnaoY3oPJH+iE=; b=P+OjSiyBwdKEMMEKaPDSPExlJp8tXpRkPnwt+LVEaEbeC0BODe14x/CWZtYjv2cKjnMvJG iyXu9TmsLsTcpZnDNKwnqJ3CyNEFPf0ryJ2J3UJOUDqlN1ngY+kLm9opCH3LuI4PFfLcED qvj1NnI6Rrp/xxZGTZ9WuYqcjhKNeZ0LMtk2yvuzuH3QGCSkTaQq3bTCjfNCEqdFdK4Syq xqYhJ4juDaMpE0pidbDOH60ErzXP0OZ91woUQCSHBeiCRhfcG6ZFHXd3ZgLuriGvof5kuv WxcCNqqcrZTTF4/NnToB1ilAPySFmgmuZbu7V/59DxzhSE1DMqKQ5f8aIzlOlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666611228; a=rsa-sha256; cv=none; b=rKF1M9zJF1UEJdCa+XXb5h8i9AF1a3LNy/5Vngcq7ACcAo5MbPEKYdhfCmsf1yT+f5UxQZ ufyOffdKd4XoViv7Yi5XWf5+d7LJmPdRyBuR+Pu8mFsHeyf4iBU1ostmZUiqsoBDTGd2vW /gowFR0fZC3nErFP/zUlWi2mSYhnq209npVzgi1cTV8XERY6qaJNMGhRv4p/nmI8V/yIzw PQW8b/o0i47jpICHpieJ8qzITL/8aP5YQvbsrSyfX0i1ilCHfYAnpa/LGYo73Hdo72GmD8 2N1rQDK3lZysY9eZDsNjuA/bUwy3GpEwZfEIEwcEY3rw4rsy0XKEJvAJMDEJuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9CCE2C1FB X-Spam-Score: -1.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: iII7nxsqXEpc Dario writes: > I apologize in advance if the issue has already been raised by somebody else > but I couldn't find anything on the bug tracker and furthermore I'm one of > those freaks who prefer a de-cluttered home directory. ;-) > > Instead of saving config file in $HOME/.notmuch-config, > ${XDG_CONFIG_HOME:-$HOME/notmuch}/notmuch-config (notmuchrc is a nice name too) > should be used for unix-based operating systems according to the XDG Base Directory Specification. > See https://notmuchmail.org/doc/latest/man1/notmuch-config.html#configuration > As well as keeping the home directory clean, the semantic separation of config, > runtime data, cache data and user-local software by the spec is helpful to users > and other tools (e.g. backup software). > > In terms of migration, I would suggest using the xdg-compilant config location > if it exists and falling back to the current default location. The priority of configurations is unlikely to change at this point. Too much potential for breakage for too little gain. d