diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-04 19:34:54 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-04 19:34:54 (GMT) |
commit | 01c4658ee0e5f36a966d03375de1afb14605d9e3 (patch) | |
tree | bc3c13ed85cc8b8fa5886f23507185f11e5c397d /shell/sugar | |
parent | 995c74b11640941d985bd756320068cb0a7d05a1 (diff) |
Make conf private, expose the nick name from env
Diffstat (limited to 'shell/sugar')
-rwxr-xr-x | shell/sugar | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/shell/sugar b/shell/sugar index 7486c88..1dd726d 100755 --- a/shell/sugar +++ b/shell/sugar @@ -17,7 +17,7 @@ else: from sugar import env -env.setup() +env.setup_system() from session.Emulator import Emulator @@ -26,6 +26,17 @@ if os.environ.has_key('SUGAR_EMULATOR') and \ emulator = Emulator() emulator.start() +from FirstTimeDialog import FirstTimeDialog +import conf + +profile = conf.get_profile() +if profile.get_nick_name() == None: + dialog = FirstTimeDialog() + dialog.run() + profile.save() + +env.setup_user(profile) + from session.Session import Session session = Session() |