summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2013-08-28 15:34:38 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2013-08-28 15:34:38 -0300
commit3b12583c01976025a18caef8ef4bdccae9e92549 (patch)
tree67bc0fff6119f3db2d30594b4f0d6ff32d46955f
parent700e70786553dfe39490e843d9e26711c2cc9bc3 (diff)
Use dirspec instead of plain xdg. Closes #3574.
-rw-r--r--changes/feature-3574_use-dirspec-instead-of-plain-xdg1
-rw-r--r--src/leap/bitmask/config/leapsettings.py9
2 files changed, 5 insertions, 5 deletions
diff --git a/changes/feature-3574_use-dirspec-instead-of-plain-xdg b/changes/feature-3574_use-dirspec-instead-of-plain-xdg
new file mode 100644
index 00000000..9bdc5071
--- /dev/null
+++ b/changes/feature-3574_use-dirspec-instead-of-plain-xdg
@@ -0,0 +1 @@
+ o Use dirspec instead of plain xdg. Closes #3574.
diff --git a/src/leap/bitmask/config/leapsettings.py b/src/leap/bitmask/config/leapsettings.py
index 35010280..4929ab41 100644
--- a/src/leap/bitmask/config/leapsettings.py
+++ b/src/leap/bitmask/config/leapsettings.py
@@ -24,7 +24,7 @@ import logging
from PySide import QtCore
from leap.common.check import leap_assert, leap_assert_type
-from leap.common.config.prefixers import get_platform_prefixer
+from leap.common.config import get_path_prefix
logger = logging.getLogger(__name__)
@@ -76,10 +76,9 @@ class LeapSettings(object):
:type standalone: bool
"""
- settings_path = os.path.join(get_platform_prefixer()
- .get_path_prefix(standalone=standalone),
- "leap",
- self.CONFIG_NAME)
+ settings_path = os.path.join(
+ get_path_prefix(standalone=standalone), "leap", self.CONFIG_NAME)
+
self._settings = QtCore.QSettings(settings_path,
QtCore.QSettings.IniFormat)