Stores user configuration outside of $XDG_CONFIG_HOME

Bug #1184457 reported by Chris Halse Rogers
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Low
Unassigned
juju-core (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Juju stores user configuration in ~/.juju. Ideally this would be stored alongside the rest of the user-local configuration, in $XDG_CONFIG_HOME/juju
(this will almost always be $HOME/.config/juju).

I've not yet checked whether juju stores any cache data in ~/.juju; if it does, that would ideally be in $XDG_CACHE_HOME.

Using the XDG basedir spec directories makes it easier to determine what files are precious and what may be discarded,
and so is useful for backup programs or users poking around trying to do manual backups or the like.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: juju-core 1.10.0.1-0ubuntu1~ubuntu13.04.1
Uname: Linux 3.7.10-linode49 i686
ApportVersion: 2.9.2-0ubuntu8
Architecture: i386
Date: Mon May 27 01:11:37 2013
Dependencies:

MarkForUpload: True
SourcePackage: juju-core
UpgradeStatus: Upgraded to raring on 2013-02-28 (87 days ago)

Revision history for this message
Chris Halse Rogers (raof) wrote :
James Page (james-page)
Changed in juju-core (Ubuntu):
status: New → Triaged
Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Curtis Hovey (sinzui) wrote :

I am tempted to mark this bug as Wont Fix. The .juju dir contains both configuration, cache, and .local responsibilities. It is also intended to be portable and shareable. Groups share their juju dirs, and a member might have many dirs that represent a collection of environments. The case for spliting the juju dir single-user into XDG location to support a single user is further undermined by the need to support Windows and OS X.

tags: added: feature
Revision history for this message
Chris Halse Rogers (raof) wrote :

I don't know about OS X (although it seems other tools use the XDG dirs on there, too), but the various XDG directories map cleanly onto standard Windows directories - AppData and such. I don't know whether Windows users expect things to live there or not, but its apparently helpful for eg: storing data in roaming profiles.

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: none → 2.0-beta4
milestone: 2.0-beta4 → none
status: Triaged → Fix Released
Changed in juju-core (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.