Exemplo n.º 1
0
 def run_qtile():
     try:
         kore = xcore.XCore(display_name=self.display)
         init_log(self.log_level, log_path=None, log_color=False)
         q = SessionManager(kore, config_class(), fname=self.sockfile)
         q.loop()
     except Exception:
         wpipe.send(traceback.format_exc())
Exemplo n.º 2
0
    def create_manager(self, config_class):
        """Create a Qtile manager instance in this thread

        This should only be used when it is known that the manager will throw
        an error and the returned manager should not be started, otherwise this
        will likely block the thread.
        """
        init_log(self.log_level, log_path=None, log_color=False)
        kore = xcore.XCore(display_name=self.display)
        config = config_class()
        for attr in dir(default_config):
            if not hasattr(config, attr):
                setattr(config, attr, getattr(default_config, attr))

        return SessionManager(kore, config, fname=self.sockfile)