From b314f4924da630cd6494760997a409805d33ce0e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 03 Oct 2008 08:45:25 +0000 Subject: Use the shell started callback also to run the control panel. --- (limited to 'bin/sugar-shell') diff --git a/bin/sugar-shell b/bin/sugar-shell index efa1142..3774fd3 100644 --- a/bin/sugar-shell +++ b/bin/sugar-shell @@ -45,15 +45,12 @@ def _setup_translations(): gettext.textdomain(domain) def _shell_started_cb(): - # Unfreeze the display hw_manager = hardwaremanager.get_manager() hw_manager.set_dcon_freeze(0) -def _software_update_cb(): - '''Ask the homeview to display an alert about available software updates - ''' - home_box = shell.get_instance().home_window.get_home_box() - home_box.show_software_updates_alert() + if os.path.isfile(os.path.expanduser('~/.sugar-update')): + home_box = shell.get_instance().home_window.get_home_box() + home_box.show_software_updates_alert() def main(): gobject.idle_add(_shell_started_cb) @@ -95,12 +92,6 @@ def main(): session_manager = get_session_manager() session_manager.start() - # dlo trac #7495: open 'software update' control panel after an upgrade - # to update activities. - update_trigger_file = os.path.expanduser('~/.sugar-update') - if os.path.isfile(update_trigger_file): - gobject.idle_add(_software_update_cb) - try: gtk.main() except KeyboardInterrupt: -- cgit v0.9.1