Merge pull request #1249 from micahflee/1248_big_sur

Make GUI work in macOS Big Sur
This commit is contained in:
Micah Lee 2020-12-13 20:02:11 -08:00 committed by GitHub
commit 5fa84ff2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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