diff --git a/ui/bin/opensnitch-ui b/ui/bin/opensnitch-ui index 1a46c4087c..61d70c41ae 100755 --- a/ui/bin/opensnitch-ui +++ b/ui/bin/opensnitch-ui @@ -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: diff --git a/ui/opensnitch/utils.py b/ui/opensnitch/utils.py index f9f5433cdd..6b8eb389c0 100644 --- a/ui/opensnitch/utils.py +++ b/ui/opensnitch/utils.py @@ -419,6 +419,9 @@ def index_by_port(self, port): 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"