[Bug 195397] Re: Bazaar does not follow the Freedesktop XDG Base Directory Specification

Antono Vasiljev antono.vasiljev at gmail.com
Sun Mar 11 14:33:40 UTC 2012


somehow bzr stores it's configs in ~/.bazaar again.

$ bzr version
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3rc1
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.2.0-18-generic-x86_64-with-Ubuntu-12.04-precise
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/antono/.bazaar
  Bazaar log file: /home/antono/.bzr.log

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/195397

Title:
  Bazaar does not follow the Freedesktop XDG Base Directory
  Specification

Status in Bazaar Version Control System:
  Fix Released
Status in “bzr” package in Ubuntu:
  Fix Released

Bug description:
  The specification can be found at: http://standards.freedesktop.org
  /basedir-spec/latest/index.html

  From the specification:

  ##########################################
  There is a single base directory relative to which user-specific data files should be written. This directory is defined by the environment variable $XDG_DATA_HOME.

  There is a single base directory relative to which user-specific
  configuration files should be written. This directory is defined by
  the environment variable $XDG_CONFIG_HOME.

  $XDG_DATA_HOME defines the base directory relative to which user
  specific data files should be stored. If $XDG_DATA_HOME is either not
  set or empty, a default equal to $HOME/.local/share should be used.

  $XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used. 
  ##########################################

  
  The reasoning behind this is so that it's easy to remove config files while not affecting any user data. This is especially important when a user upgrades their OS, i.e. Ubuntu 7.10 -> Ubuntu 8.04, and wants to start with the default settings for their applications. It will also help organise the ever so horrid mess in the home folder.

  A simple rule might be:
  Data for which there exists sane defaults, is config data. Data which should not be lost is user data.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/195397/+subscriptions




More information about the foundations-bugs mailing list