From dfe0c4f46464c6e6ca04e910d7b06170159fb184 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 02 Oct 2008 11:12:42 +0000 Subject: Drop unused SUGAR_TP_DEBUG. --- (limited to 'bin') diff --git a/bin/sugar-shell b/bin/sugar-shell index 8f50032..a47b556 100644 --- a/bin/sugar-shell +++ b/bin/sugar-shell @@ -118,34 +118,6 @@ def main(): if get_profile().timezone is not None: os.environ['TZ'] = get_profile().timezone - if os.environ.has_key("SUGAR_TP_DEBUG"): - # Allow the user time to start up telepathy connection managers - # using the Sugar DBus bus address - import time - from telepathy.client import ManagerRegistry - - registry = ManagerRegistry() - registry.LoadManagers() - - debug_flags = os.environ["SUGAR_TP_DEBUG"].split(',') - for cm_name in debug_flags: - if cm_name not in ["gabble", "salut"]: - continue - - try: - cm = registry.services[cm_name] - except KeyError: - print RuntimeError("%s connection manager not found!" % cm_name) - - while not check_cm(cm['busname']): - print "Waiting for %s on: DBUS_SESSION_BUS_ADDRESS=%s" % \ - (cm_name, os.environ["DBUS_SESSION_BUS_ADDRESS"]) - try: - time.sleep(5) - except KeyboardInterrupt: - print "Got Ctrl+C, continuing..." - break - # TODO: move initializations from the Shell constructor to a start() method shell.get_instance() ShellService() -- cgit v0.9.1