Make Qt5 work in macOS Big Sur

This commit is contained in:
Micah Lee 2020-12-13 20:01:23 -08:00
parent 83ec17efd7
commit 82629136af
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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/")