From 82629136af65b3cd7e16d6f55acb188641ef2066 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 13 Dec 2020 20:01:23 -0800 Subject: [PATCH] Make Qt5 work in macOS Big Sur --- desktop/src/onionshare/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/src/onionshare/__init__.py b/desktop/src/onionshare/__init__.py index 287d882c..f66c5a28 100644 --- a/desktop/src/onionshare/__init__.py +++ b/desktop/src/onionshare/__init__.py @@ -64,6 +64,10 @@ def main(): """ common = Common() + # Required for macOS Big Sur: https://stackoverflow.com/a/64878899 + if common.platform == "Darwin": + os.environ["QT_MAC_WANTS_LAYER"] = "1" + # Display OnionShare banner print(f"OnionShare {common.version} | https://onionshare.org/")