From 977f594510b70c7f0d1c99d1d77c188ff6ba8e37 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 11 Apr 2016 17:47:50 -0400 Subject: [bug] workaround for qt gui corruption in wily - Resolves: #8028 --- src/leap/bitmask/app.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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) -- cgit v1.2.3