Make Qt5 work in macOS Big Sur

This commit is contained in:
Micah Lee 2020-12-13 20:01:23 -08:00
parent 857a277cd2
commit a72e4e5b54

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