From 924e2e62bf9e2dbc7a15c412def076a0194370a3 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Fri, 21 Jan 2011 21:01:46 +0000 Subject: [PATCH] fix sugar-emulator detection logic broken by 814ab2d (has_key() cleanup) This broke Shutdown and Restart (buddy menu). Signed-off-by: Sascha Silbe --- src/sugar/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar/env.py b/src/sugar/env.py index 1ef8f346..e681f4f7 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):