From aa39c362854dabd5d998a607c625edd835f23106 Mon Sep 17 00:00:00 2001 From: Santiago Collazo Date: Tue, 02 Apr 2013 19:41:24 +0000 Subject: Enable welcome activity --- diff --git a/bin/sugar-session b/bin/sugar-session index d8078a1..c011cbf 100755 --- a/bin/sugar-session +++ b/bin/sugar-session @@ -98,6 +98,16 @@ def cleanup_logs(logs_dir): dest_path = os.path.join(backup_dir, log) os.rename(source_path, dest_path) +def show_welcome_screen(): + path = os.path.expanduser('~/.welcome_screen') + if os.path.exists(path): + welcome_file_flag = open(path, 'r') + welcome_file_command = welcome_file_flag.read() + welcome_file_flag.close() + os.remove(path) + if subprocess.call(welcome_file_command.split()): + logging.warning('Can not display welcome screen.') + def start_ui_service(): from jarabe.view.service import UIService @@ -461,6 +471,9 @@ def main(): icons_path = os.path.join(config.data_path, 'icons') Gtk.IconTheme.get_default().append_search_path(icons_path) + # OLPC: open welcome screen if booted for the first time + show_welcome_screen() + if not intro.check_profile(): win = IntroWindow() win.connect("done", intro_window_done_cb) -- cgit v0.9.1