mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Fix macOS close immediately bug
This commit is contained in:
parent
ca08fab0ab
commit
4c7bde09c7
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue