summaryrefslogtreecommitdiff
path: root/src/leap/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/app.py')
-rw-r--r--src/leap/app.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index b721468f..52ebcaea 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -7,7 +7,6 @@ from PyQt4.QtGui import (QApplication, QSystemTrayIcon, QMessageBox)
from leap import __version__ as VERSION
from leap.baseapp.mainwindow import LeapWindow
-from leap.baseapp import unitychecks
def main():
@@ -36,6 +35,10 @@ def main():
console.setFormatter(formatter)
logger.addHandler(console)
+ logger.debug(opts)
+ 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,12 +47,8 @@ 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()
if not QSystemTrayIcon.isSystemTrayAvailable():
QMessageBox.critical(None, "Systray",
@@ -60,7 +59,8 @@ def main():
QApplication.setQuitOnLastWindowClosed(False)
window = LeapWindow(opts)
- window.show()
+ if debug:
+ window.show()
sys.exit(app.exec_())
if __name__ == "__main__":