Status: Unconfirmed
Owner: ----
Labels: OS-Linux Area-Misc Size-Medium Type-Bug

New issue 16976 by nekohayo: use the XDG_CACHE_HOME and XDG_DATA_HOME  
standard user directories
http://code.google.com/p/chromium/issues/detail?id=16976

Chrome Version       : 3.0.195.0~svn20090715r20727
OS + version : Ubuntu Linux 9.04
CPU architecture (32-bit / 64-bit): 32-bit
URLs (if applicable) :
http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

Chromium currently already seems to use the XDG_CONFIG_HOME directory
variable from the freedesktop spec, such as ~/.config/chromium/.

However, I noticed that the browser cache (and other data that is not
configuration) is also stored in that same folder
(~/.config/chromium/Default/Cache, for example), which goes against the
spirit of the XDG spec.

As this project's settings saving is still a young feature at the moment, I
guess now is the time to make sure that we get the user data directory
locations "done right" from the start. What I'm referring to is this
Freedesktop spec: http://standards.freedesktop.org/basedir-spec/latest/
Especially:  
http://standards.freedesktop.org/basedir-spec/latest/ar01s03.html

I first heard about the xdg desktop dirs thing through this post, which
does a good job at explaining the issue/challenges that this spec
addresses:
http://ploum.frimouvy.org/?184-cleaning-user-preferences-keeping-user-data

See also:
http://ploum.frimouvy.org/?207-modify-your-application-to-use-xdg-folders

So, for example, we could store files like this:
- $XDG_CONFIG_HOME/chromium/[some config files here]
- $XDG_DATA_HOME/chromium/[bookmarks, dictionaries, extensions, sessions?]
- $XDG_CACHE_HOME/chromium/[the browser cache and cookies here?]

Thanks!

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to