[orca/new-settings] Used settings.userPrefsDir for gettings the right Orca's home directory instead of using xdg directl
- From: Juanje Ojeda Croissier <jojeda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/new-settings] Used settings.userPrefsDir for gettings the right Orca's home directory instead of using xdg directl
- Date: Tue, 2 Nov 2010 02:26:52 +0000 (UTC)
commit ecfeaac77c37df1e0c8de45ac2ce40fb10eb5f6d
Author: Juanje Ojeda <jojeda emergya es>
Date: Tue Nov 2 03:20:51 2010 +0100
Used settings.userPrefsDir for gettings the right Orca's home directory instead of using xdg directly
src/orca/backends/yaml_backend.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/backends/yaml_backend.py b/src/orca/backends/yaml_backend.py
index cf826f0..9088490 100644
--- a/src/orca/backends/yaml_backend.py
+++ b/src/orca/backends/yaml_backend.py
@@ -28,8 +28,7 @@ __license__ = "LGPL"
from yaml import load, dump
import os
-from xdg.BaseDirectory import xdg_data_home
-
+from orca import settings
class Backend:
@@ -40,8 +39,8 @@ class Backend:
self.pronunciations = {}
self.keybindings = {}
self.profiles = {}
- self.settingsFile = os.path.join(xdg_data_home,
- "orca/user-settings.conf")
+ self.settingsFile = os.path.join(settings.userPrefsDir,
+ "user-settings.conf")
def saveDefaultSettings(self, general, pronunciations, keybindings):
""" Save default settings for all the properties from
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]