Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Collazo <scollazo@activitycentral.com>2013-04-02 19:41:24 (GMT)
committer Santiago Collazo <scollazo@activitycentral.com>2013-04-02 19:41:24 (GMT)
commitaa39c362854dabd5d998a607c625edd835f23106 (patch)
tree3388c7970148c0b34500ba153af4f93302e6ef69
parent0431381187173931c93d378031eef508b45482e7 (diff)
Enable welcome activity
-rwxr-xr-xbin/sugar-session13
1 files changed, 13 insertions, 0 deletions
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)