Fix macOS close immediately bug

This commit is contained in:
Micah Lee 2021-02-10 15:49:05 -08:00
parent ca08fab0ab
commit 4c7bde09c7
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -1,4 +1,11 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# After much terrible troubleshooting, turns out this is required to allow Dangerzone
# to open in macOS when double-clicking, not just when running from the terminal or opening
# with a file.
import os
os.environ["LANG"] = "en_US.UTF-8"
import dangerzone
dangerzone.main()