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.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index 334b58c8..912e390d 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -49,6 +49,13 @@ def main():
logger.addHandler(console)
#logger.debug(opts)
+ import os
+ ldlib = os.environ.get("LD_LIBRARY_PATH", None)
+ dyldlib = os.environ.get("DYLD_LIBRARY_PATH", None)
+
+ logger.debug("LD_LIBRARY_PATH %s" % ldlib)
+ logger.debug("DYLD_LIBRARY_PATH %s" % dyldlib)
+
logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logger.info('LEAP client version %s', VERSION)
logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
@@ -82,6 +89,10 @@ def main():
app.setApplicationName("leap")
app.setOrganizationDomain("leap.se")
+ # XXX we could check here
+ # if leap-client is already running, and abort
+ # gracefully in that case.
+
if not QSystemTrayIcon.isSystemTrayAvailable():
QMessageBox.critical(None, "Systray",
"I couldn't detect"
@@ -108,6 +119,8 @@ def main():
# if not, it will be set visible
# from the systray menu.
window.show()
+ if sys.platform == "darwin":
+ window.raise_()
# run main loop
sys.exit(app.exec_())