[gnome-schedule] Fix bug 612459: unset POSIXLY_CORRECT before test run



commit b22840ca25f536697b3b411fa3f32bce46e36a22
Author: Gaute Hope <eg gaute vetsj com>
Date:   Fri Mar 12 23:00:04 2010 +0100

    Fix bug 612459: unset POSIXLY_CORRECT before test run

 src/mainWindow.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.py b/src/mainWindow.py
index 528a430..5dc66e1 100644
--- a/src/mainWindow.py
+++ b/src/mainWindow.py
@@ -714,8 +714,13 @@ class main:
 
             os.chmod (path, stat.S_IEXEC | stat.S_IREAD)
 
+            # unset POSIXLY_CORRECT if manually set, bug 612459
+            if self.manual_poscorrect: os.unsetenv ('POSIXLY_CORRECT')
+
             gnome.execute_terminal_shell (self.user_home_dir, execute)
 
+            if self.manual_poscorrect: os.putenv ('POSIXLY_CORRECT', 'enabled')
+
 
         except Exception, ex:
             print ex
@@ -787,5 +792,5 @@ class main:
             gtk.main_quit ()
         return True
 
-# vim: set noai sw=4 tw=4 ts=4:
+# vim : set sw=4 :
 



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