summaryrefslogtreecommitdiff
path: root/src/leap/app.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-20 05:00:32 +0900
committerkali <kali@leap.se>2012-09-20 05:00:32 +0900
commit1ab8247ecb8664af5159b7f1e050189f5e637146 (patch)
tree1fac7766356a2a69870fd0e00fd306131bd036a9 /src/leap/app.py
parent50396fca082652dd1a1617e0d029c1c726e4c651 (diff)
parent3c7451d62363d0a3326552956db630dda09392fa (diff)
Merge branch 'feature/systray-menu' into develop
Close #536. Cleaning up of the systray menu. Main window starts hidden if not in debug mode. Incidentally, some fixes related to the subprocess invocation and termination, removing many of the annoying hangs during debug.
Diffstat (limited to 'src/leap/app.py')
-rw-r--r--src/leap/app.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index 1aebfca2..fe88a002 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -36,6 +36,9 @@ def main():
console.setFormatter(formatter)
logger.addHandler(console)
+ logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
+ logger.info('LEAP client version %s', VERSION)
+ logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logfile = getattr(opts, 'log_file', False)
if logfile:
logger.debug('setting logfile to %s ', logfile)
@@ -44,10 +47,7 @@ def main():
fileh.setFormatter(formatter)
logger.addHandler(fileh)
- #logger.debug('args: %s' % opts)
logger.info('Starting app')
- logger.info('Running client version %s', VERSION)
-
app = QApplication(sys.argv)
unitychecks.do_check()
@@ -60,7 +60,8 @@ def main():
QApplication.setQuitOnLastWindowClosed(False)
window = LeapWindow(opts)
- window.show()
+ if debug:
+ window.show()
sys.exit(app.exec_())
if __name__ == "__main__":