[orca] Fix for bug 669813 - Remove pyxdg dependency



commit e14a7ddc9e244b2085e8bc45641bd710b6f2dc3f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 10 18:55:19 2012 -0400

    Fix for bug 669813 - Remove pyxdg dependency

 README                       |    1 -
 configure.ac                 |    1 -
 src/orca/settings_manager.py |    4 ++--
 3 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/README b/README
index 10faab2..54d70d8 100644
--- a/README
+++ b/README
@@ -33,7 +33,6 @@ Orca also has the following dependencies:
 * pygobject-3.0    - Python bindings for the GObject library
 * gtk+-3.0         - Gtk+ toolkit
 * json-py          - a JSON (http://json.org) reader and writer in Python
-* pyxdg            - Python library to access freedesktop.org standards
 * python-speechd   - Python bindings for Speech Dispatcher (optional)
 * BrlTTY           - BrlTTY support for braille (optional)
 * BrlAPI           - BrlAPI support for braille (optional)
diff --git a/configure.ac b/configure.ac
index cbc8020..4b11d22 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,7 +47,6 @@ AM_PATH_PYTHON(2.7)
 
 AM_CHECK_PYMOD(cairo,,,[AC_MSG_ERROR(Could not find python module: cairo)])
 AM_CHECK_PYMOD(json,,,[AC_MSG_ERROR(Could not find python module: json)])
-AM_CHECK_PYMOD(xdg,,,[AC_MSG_ERROR(Could not find python module: xdg)])
 AM_CHECK_PYMOD(brlapi,,[brlapi_available="yes"],[brlapi_available="no"])
 AM_CHECK_PYMOD(speechd,,[speechd_available="yes"],[speechd_available="no"])
 LOUIS_TABLE_DIR=""
diff --git a/src/orca/settings_manager.py b/src/orca/settings_manager.py
index b4d1c18..02a18bc 100644
--- a/src/orca/settings_manager.py
+++ b/src/orca/settings_manager.py
@@ -32,7 +32,6 @@ import os
 import imp
 from gi.repository import Gio, GLib
 from json import load
-from xdg.BaseDirectory import xdg_data_home
 
 import debug
 from keybindings import KeyBinding
@@ -75,7 +74,8 @@ class SettingsManager(object):
         self._backend = None
         self.profile = None
         self.backendName = backend
-        self._prefsDir = prefsDir or os.path.join(xdg_data_home, "orca")
+        self._prefsDir = prefsDir \
+            or os.path.join(GLib.get_user_data_dir(), "orca")
 
         # Dictionaries for store the default values
         # The keys and values are defined at orca.settings



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]