Bazaar does not follow the Freedesktop XDG Base Directory Specification
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Neil Martinsen-Burrell | ||
bzr (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The specification can be found at: http://
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.
Related branches
- Robert Collins (community): Needs Resubmitting
- Andrew Bennetts: Needs Resubmitting
-
Diff: 65 lines (+30/-3)1 file modifiedbzrlib/config.py (+30/-3)
- Andrew Bennetts: Approve
- John A Meinel: Needs Fixing
-
Diff: 142 lines (+85/-1)5 files modifiedbzrlib/config.py (+18/-1)
bzrlib/tests/test_config.py (+30/-0)
doc/developers/xdg_config_spec.txt (+27/-0)
doc/en/release-notes/bzr-2.3.txt (+3/-0)
doc/en/whats-new/whats-new-in-2.3.txt (+7/-0)
Changed in bzr (Ubuntu): | |
status: | New → Confirmed |
tags: | added: xdg-user-dir |
Changed in bzr: | |
assignee: | nobody → Neil Martinsen-Burrell (nmb) |
milestone: | none → 2.3b4 |
status: | Confirmed → Fix Released |
Hi,
I think it's a good idea for us to do this, but we need
to come up with a transition plan.
I guess this is a very common situation to be in, there isn't
by any chance any support for doing this somewhere is there?
Thanks,
James