Consider following XDG base directory specification

Subject: Consider following XDG base directory specification

Date: Mon, 24 Oct 2022 11:09:57 +0200

To: notmuch@notmuchmail.org

Cc:

From: Dario


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.

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.

I know someone could decide to run notmuch with the --config switch in order to read from a
different configuration file but I feel the XDG base directory specification is a nice default behavior.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: