|
From: | GNU bug Tracking System |
Subject: | [debbugs-tracker] bug#583: closed (Use XDG basedir spec for configuration files?) |
Date: | Tue, 27 Aug 2019 21:59:02 +0000 |
Your message dated Tue, 27 Aug 2019 14:57:55 -0700 with message-id <address@hidden> and subject line Re: Use XDG basedir spec for configuration files? has caused the debbugs.gnu.org bug report #583, regarding Use XDG basedir spec for configuration files? to be marked as done. (If you believe you have received this mail in error, please contact address@hidden.) -- 583: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=583 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: Use XDG basedir spec for configuration files? Date: Mon, 21 Jul 2008 08:59:30 +0200 The XDG Base Directory Specification provides some common paths in user's home to store personal application configurations, or, using their own words "defines where these files should be looked for by defining one or more base directories relative to which files should be located".
XDG Base Directory Specification allows efficient backup, in which you can easily choose to backup your data and/or your configuration files for instance. An application could easily propose such backup for the whole system if all applications were matching these specification.
Therefore, although I think that this bug/enhancement is not vital, it would be great for Emacs to be "FreeDesktop XDG Base Directory Specification" compliant.
Currently Emacs is using "$HOME/.emacs.d/". This is what XDG basedir spec defines:
- $XDG_DATA_HOME (usually $HOME/.local/share/) as "the base directory relative to which user specific data files should be stored"
- $XDG_CONFIG_HOME (usually $HOME/.config/) as "the base directory relative to which user specific configuration files should be stored"
- $XDG_CACHE_HOME (usually $HOME/.cache/) as "the base directory relative to which user specific non-essential data files should be stored"
(http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
In order to make Emacs XDG basedir compliant, I think that it would be nice to use:
- $XDG_CONFIG_HOME/emacs ;;for "init.el" and storing customize configuration
- $XDG_DATA_HOME/emacs ;;for sessions and backups
- $XDG_CACHE_HOME/emacs ;;for cache files
Or maybe some other distribution. What do you think about it?
There's a small C library that may be useful check it out, written for the sole purpose of xdg basedir spec compliance: https://n.ethz.ch/student/nevillm/download/libxdg-basedir/
--- End Message ---
--- Begin Message ---Subject: Re: Use XDG basedir spec for configuration files? Date: Tue, 27 Aug 2019 14:57:55 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 After discussion we added something along the suggested lines to Emacs master here: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=4118297ae2fab4886b20d193ba511a229637aea3 so I am closing bug report number 583.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |