[Sugar-devel] [PATCH sugar-toolkit] fix sugar-emulator detection logic broken by 814ab2d (has_key() cleanup)

Sascha Silbe sascha-pgp at silbe.org
Fri Jan 21 11:01:46 EST 2011


This broke Shutdown and Restart (buddy menu).

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>
---
 src/sugar/env.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sugar/env.py b/src/sugar/env.py
index 1ef8f34..e681f4f 100644
--- a/src/sugar/env.py
+++ b/src/sugar/env.py
@@ -24,7 +24,7 @@ import os
 
 
 def is_emulator():
-    return os.environ.get('SUGAR_EMULATOR', 'yes') == 'yes'
+    return os.environ.get('SUGAR_EMULATOR', 'no') == 'yes'
 
 
 def get_profile_path(path=None):
-- 
1.7.2.3



More information about the Sugar-devel mailing list