[orca/gnome-2-28] Fix for b.g.o.#601657 and d.o.o.#12629 - Preferences cannot be saved.



commit 49e0c882acd78c9514e150dac797dfa6149a4808
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Dec 18 15:52:26 2009 -0500

    Fix for b.g.o.#601657 and d.o.o.#12629 - Preferences cannot be saved.

 src/orca/orca.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index b185c17..0088f6b 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -1749,6 +1749,13 @@ def main():
         showPreferencesGUI()
     elif (not _userSettings) and (not bypassSetup):
         if desktopRunning:
+            if not os.path.exists(userprefs):
+                # Hack to work around b.g.o. 601657.
+                #
+                try:
+                    os.mkdir(userprefs)
+                except:
+                    debug.printException(debug.LEVEL_FINEST)
             showPreferencesGUI()
         else:
             _showPreferencesConsole()



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