all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#583: Use XDG basedir spec for configuration files?
@ 2008-07-21  6:59 Fernando
  2012-12-08 12:18 ` bug#583: XDG basedir specification Eric Heintzmann
  2019-08-27 21:57 ` bug#583: Use XDG basedir spec for configuration files? Paul Eggert
  0 siblings, 2 replies; 33+ messages in thread
From: Fernando @ 2008-07-21  6:59 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

The XDG Base Directory
Specification<http://standards.freedesktop.org/basedir-spec/>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/

[-- Attachment #2: Type: text/html, Size: 3214 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2020-08-13 11:06 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21  6:59 bug#583: Use XDG basedir spec for configuration files? Fernando
2012-12-08 12:18 ` bug#583: XDG basedir specification Eric Heintzmann
2012-12-08 19:06   ` Jan Djärv
2012-12-08 19:31     ` Eli Zaretskii
2019-08-27 21:57 ` bug#583: Use XDG basedir spec for configuration files? Paul Eggert
2019-08-28 16:11   ` Glenn Morris
2019-08-28 16:29     ` Eli Zaretskii
2019-08-28 16:50       ` Glenn Morris
2019-08-28 17:18         ` Eli Zaretskii
2019-08-29  2:17           ` Glenn Morris
2019-08-29  7:03             ` Eli Zaretskii
2019-08-28 18:11     ` Paul Eggert
2019-08-29  2:14       ` Glenn Morris
2019-08-29  6:22         ` Paul Eggert
2019-08-29  8:42           ` Štěpán Němec
2019-08-29 18:30           ` Glenn Morris
2019-08-29 18:35             ` Glenn Morris
2019-08-29 18:53             ` Eli Zaretskii
2019-08-30  8:02             ` Paul Eggert
2019-08-30 16:18               ` Glenn Morris
2019-08-30 17:44                 ` Eli Zaretskii
2019-09-01  1:56                 ` bug#15539: [PATCH] Setting user-emacs-directory Paul Eggert
2019-09-02 23:45                   ` Glenn Morris
2019-09-03  6:29                     ` Paul Eggert
2019-09-08 14:54                       ` Mike Carifio
2020-08-13 11:06                       ` Lars Ingebrigtsen
2019-09-01  2:02                 ` bug#583: Use XDG basedir spec for configuration files? Paul Eggert
2019-09-01 14:38                   ` Eli Zaretskii
2019-09-01 18:40                     ` Paul Eggert
2019-09-01 18:50                       ` Eli Zaretskii
2019-09-01 23:01                         ` Paul Eggert
2019-08-31 21:51             ` Paul Eggert
2019-09-11  9:21               ` Sven Joachim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.