summaryrefslogtreecommitdiff
path: root/src/leap/app.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-16 14:33:11 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-07-16 14:33:11 -0300
commitbff9af8d446d23d73cc900e591a77e2e020683c4 (patch)
tree0c56f000557b9c8caa5a7cbb2dec75be1f54d382 /src/leap/app.py
parentb0f1fd4cd127d13fd4f64a9e8dc59ecab8571fa9 (diff)
parent66eecf46b372a1e62efd6f9684bd7ee059c69708 (diff)
Merge remote-tracking branch 'chiiph/bug/force_cleanlooks' into develop
Diffstat (limited to 'src/leap/app.py')
-rw-r--r--src/leap/app.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/app.py b/src/leap/app.py
index c0902efa..7ec755f9 100644
--- a/src/leap/app.py
+++ b/src/leap/app.py
@@ -18,6 +18,7 @@
import logging
import signal
import sys
+import os
from functools import partial
@@ -155,6 +156,14 @@ def main():
logger.info('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
logger.info('Starting app')
+
+ # We force the style if on KDE so that it doesn't load all the kde
+ # libs, which causes a compatibility issue in some systems.
+ # For more info, see issue #3194
+ if os.environ.get("KDE_SESSION_UID") is not None:
+ sys.argv.append("-style")
+ sys.argv.append("Cleanlooks")
+
app = QtGui.QApplication(sys.argv)
# install the qt4reactor.