Skip to content

Commit

Permalink
Fix macOS close immediately bug
Browse files Browse the repository at this point in the history
  • Loading branch information
micahflee committed Feb 10, 2021
1 parent ca08fab commit 4c7bde0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install/pyinstaller/dangerzone
Original file line number Diff line number Diff line change
@@ -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()
dangerzone.main()

0 comments on commit 4c7bde0

Please sign in to comment.