예제 #1
0
 def _process_startup_complete(self, packet):
     log("all the existing windows and system trays have been received")
     XpraClientBase._process_startup_complete(self, packet)
     gui_ready()
     if self.tray:
         self.tray.ready()
     self.send_info_request()
예제 #2
0
 def _process_startup_complete(self, packet):
     log("all the existing windows and system trays have been received")
     XpraClientBase._process_startup_complete(self, packet)
     gui_ready()
     if self.tray:
         self.tray.ready()
     self.send_info_request()
     msg = "running"
     try:
         windows = tuple(self._id_to_window.values())
     except AttributeError:
         pass
     else:
         trays = sum(1 for w in windows if w.is_tray())
         wins = sum(1 for w in windows if not w.is_tray())
         if wins:
             msg += ", %i window%s" % (wins, engs(wins))
         if trays:
             msg += ", %i tray%s" % (trays, engs(trays))
     log.info(msg)