mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
ui: fixed pop-up crash on wayland
Clicking on the [+] pop-up button crashes the GUI on wayland (f37). Switching to xcb plugin fixes this problem (QT_QPA_PLATFORM=xcb)
This commit is contained in:
parent
ba5208ef02
commit
5264988a36
2 changed files with 8 additions and 3 deletions
|
@ -69,6 +69,7 @@ Examples:
|
|||
import faulthandler
|
||||
faulthandler.enable()
|
||||
|
||||
os.environ["QT_QPA_PLATFORM"] = "xcb"
|
||||
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
||||
if supported_qt_version(5,6,0):
|
||||
try:
|
||||
|
|
|
@ -419,6 +419,9 @@ class NetworkServices():
|
|||
return self.ports_list.index(str(port))
|
||||
|
||||
class Icons():
|
||||
"""
|
||||
https://www.pythonguis.com/faq/built-in-qicons-pyqt/icons-builtin.png
|
||||
"""
|
||||
|
||||
defaults = {
|
||||
'document-new': "SP_FileIcon",
|
||||
|
@ -442,7 +445,8 @@ class Icons():
|
|||
'edit-delete': "SP_DialogCancelButton",
|
||||
'list-add': "SP_ArrowUp",
|
||||
'list-remove': "SP_ArrowDown",
|
||||
'system-search': "SP_FileDialogContentsView"
|
||||
'system-search': "SP_FileDialogContentsView",
|
||||
'application-exit': "SP_TitleBarCloseButton"
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
@ -461,9 +465,9 @@ class Versions():
|
|||
def get():
|
||||
try:
|
||||
from google.protobuf import __version__ as proto_version
|
||||
from grpc import __version__ as grpc_version
|
||||
from grpc import _grpcio_metadata as grpcmeta
|
||||
|
||||
return gui_version, grpc_version, proto_version
|
||||
return gui_version, grpcmeta.__version__, proto_version
|
||||
|
||||
except:
|
||||
return "none", "none", "none"
|
||||
|
|
Loading…
Add table
Reference in a new issue