FlorianHeigl / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

$XDG_CONFIG_HOME #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of saving configuration to ~/.googlecl use $XDG_CONFIG_HOME as a base, 
and then no need for leading dot. Normally $XDG_CONFIG_HOME points to 
~/.config, so the actual config folder for googlecl would be:
~/.config/googlecl/

Also consider $XDG_DATA_HOME and $XDG_CACHE_HOME.

See:
http://www.freedesktop.org/wiki/Specifications/basedir-spec

Original issue reported on code.google.com by marius.s...@gmail.com on 18 Jun 2010 at 8:08

GoogleCodeExporter commented 9 years ago
sessionType = os.environ.get('DESKTOP_SESSION') gives the current session based 
on which the location can be decided.

Original comment by hemanth...@gmail.com on 25 Jun 2010 at 9:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Uploaded a patch, in which the current desktop session is detected if XDG the 
config dir will be ~/.config/googlecl/ if not  ~/.googlecl.

Edited file : src/googlecl/__init__.py 
Source => from the repository

Original comment by hemanth...@gmail.com on 27 Jun 2010 at 8:41

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r367.

Original comment by tom.h.mi...@gmail.com on 30 Jul 2010 at 10:39

GoogleCodeExporter commented 9 years ago
Issue 62 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 12 Aug 2010 at 9:14