diff options
author | Kali Kaneko <kali@leap.se> | 2018-04-26 00:08:46 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-04-26 00:08:46 +0200 |
commit | c1d2033d4f6e5f139ded0a1896c5c7f58ebd2e6f (patch) | |
tree | bcbebedf303358bf83bac922d244f368570f77d5 /src/leap/bitmask | |
parent | 513a1c153c7d4a3a0b787a1cb83816c905d191d4 (diff) |
[bug] workaround for segfault caused by qtwebview bug
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/gui/app.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/app.py b/src/leap/bitmask/gui/app.py index 02600420..a0d9be6f 100644 --- a/src/leap/bitmask/gui/app.py +++ b/src/leap/bitmask/gui/app.py @@ -21,12 +21,14 @@ It just launches a wekbit browser that runs the local web-ui served by bitmaskd when the web service is running. """ +import ctypes import os import platform import signal import sys import webbrowser +from ctypes import import util from functools import partial from multiprocessing import Process @@ -41,6 +43,12 @@ from leap.bitmask.gui.housekeeping import check_stale_pidfile HAS_WEBENGINE = False + +# This is a workaround for #9278. +# See https://bugs.launchpad.net/ubuntu/+source/ +# qtbase-opensource-src/+bug/1761708 +ctypes.CDLL(util.find_library('GL'), ctypes.RTLD_GLOBAL) + if platform.system() == 'Windows': from multiprocessing import freeze_support from PySide import QtCore, QtGui |