Mercurial > libervia-desktop-kivy
diff src/cagou/core/cagou_main.py @ 48:028a98983e46
core: avoid kivy arguments hijacking so QuickApp arguments parsing can be used
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 10 Sep 2016 15:52:30 +0200 |
parents | 7819e9efa250 |
children | fd9cbf6ae663 |
line wrap: on
line diff
--- a/src/cagou/core/cagou_main.py Sat Sep 10 00:05:46 2016 +0200 +++ b/src/cagou/core/cagou_main.py Sat Sep 10 15:52:30 2016 +0200 @@ -19,8 +19,8 @@ from sat.core.i18n import _ -import logging_setter -logging_setter.set_logging() +import kivy_hack +kivy_hack.do_hack() from constants import Const as C from sat.core import log as logging log = logging.getLogger(__name__) @@ -28,6 +28,7 @@ from sat_frontends.quick_frontend.quick_app import QuickApp from sat_frontends.quick_frontend import quick_widgets from sat_frontends.quick_frontend import quick_chat +from sat_frontends.quick_frontend import quick_utils from sat_frontends.bridge.DBus import DBusBridgeFrontend import kivy kivy.require('1.9.1') @@ -200,7 +201,7 @@ MB_HANDLE = False def __init__(self): - super(Cagou, self).__init__(create_bridge=DBusBridgeFrontend, xmlui=xmlui) + super(Cagou, self).__init__(create_bridge=DBusBridgeFrontend, xmlui=xmlui, check_options=quick_utils.check_options) self._import_kv() self.app = CagouApp() self.app.host = self