diff options
author | Kali Kaneko <kali@leap.se> | 2016-04-11 17:47:50 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-04-11 17:48:02 -0400 |
commit | 977f594510b70c7f0d1c99d1d77c188ff6ba8e37 (patch) | |
tree | a2360b87ad244a8e6ca8c9255335a28533c07351 /src/leap/bitmask | |
parent | fcb9513a8df9b2d690607106d3397b7c785f3b33 (diff) |
[bug] workaround for qt gui corruption in wily
- Resolves: #8028
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/app.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/bitmask/app.py b/src/leap/bitmask/app.py index 0ae60e48..2c41068c 100644 --- a/src/leap/bitmask/app.py +++ b/src/leap/bitmask/app.py @@ -74,6 +74,11 @@ if platform.system() == "Darwin": resource.setrlimit(resource.RLIMIT_NOFILE, (4096, 10240)) +def qt_hack_ubuntu(): + """Export an env var to avoid gui corruption, see #8028""" + os.environ['QT_GRAPHICSSYSTEM'] = 'native' + + def kill_the_children(): """ Make sure no lingering subprocesses are left in case of a bad termination. @@ -151,6 +156,8 @@ def start_app(): """ Starts the main event loop and launches the main window. """ + qt_hack_ubuntu() + # Ignore the signals since we handle them in the subprocesses # signal.signal(signal.SIGINT, signal.SIG_IGN) |