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



commit b235281a7ddbc686bdca87e4155e5c882ea03a63
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 f13556e..8d97f16 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -1763,6 +1763,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]