summaryrefslogtreecommitdiff
path: root/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-04-29 17:54:01 -0300
committerdrebs <drebs@leap.se>2013-04-29 17:54:01 -0300
commitd45963c020b0522be334f04a09fa2bb4d48ec5e1 (patch)
tree8a9e04599bca1677753789df0f868da394dd23de /src/leap/soledad
parente15e1ae21c973fa6674bb5526c59a22c98106db9 (diff)
Use XDG for determining config prefix.
Diffstat (limited to 'src/leap/soledad')
-rw-r--r--src/leap/soledad/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/soledad/config.py b/src/leap/soledad/config.py
index e4b34b71..733ad9e7 100644
--- a/src/leap/soledad/config.py
+++ b/src/leap/soledad/config.py
@@ -24,13 +24,16 @@ import os
import logging
+from xdg import BaseDirectory
from leap.common.config.baseconfig import BaseConfig
logger = logging.getLogger(name=__name__)
-PREFIX = os.environ['HOME'] + '/.config/leap/soledad'
+PREFIX = os.path.join(
+ BaseDirectory.xdg_config_home,
+ 'leap', 'soledad')
soledad_config_spec = {