summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/frontend_app.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-02 12:52:31 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 12:14:20 -0300
commit0cab909f9518273d95e371e5fb1061fb9b0a92fd (patch)
tree62d1bd0ea280fa1889a6f84b41cc46a232d2918e /src/leap/bitmask/frontend_app.py
parent13c0b7cac822a33f7395e3f099a2d37251e2c759 (diff)
Send the flag module values to the processes.
Add serialize/deserialize to dict helper.
Diffstat (limited to 'src/leap/bitmask/frontend_app.py')
-rw-r--r--src/leap/bitmask/frontend_app.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/bitmask/frontend_app.py b/src/leap/bitmask/frontend_app.py
index 60f20e3c..1fe4cd0a 100644
--- a/src/leap/bitmask/frontend_app.py
+++ b/src/leap/bitmask/frontend_app.py
@@ -23,6 +23,7 @@ from PySide import QtCore, QtGui
from leap.bitmask.config import flags
from leap.bitmask.gui import locale_rc # noqa - silence pylint
from leap.bitmask.gui.mainwindow import MainWindow
+from leap.bitmask.util import dict_to_flags
import logging
logger = logging.getLogger(__name__)
@@ -39,13 +40,17 @@ def sigint_handler(*args, **kwargs):
mainwindow.quit()
-def run_frontend(options):
+def run_frontend(options, flags_dict):
"""
Run the GUI for the application.
:param options: a dict of options parsed from the command line.
:type options: dict
+ :param flags_dict: a dict containing the flag values set on app start.
+ :type flags_dict: dict
"""
+ dict_to_flags(flags_dict)
+
start_hidden = options["start_hidden"]
# We force the style if on KDE so that it doesn't load all the kde