We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1213508 commit 36dcef5Copy full SHA for 36dcef5
main.go
@@ -10,6 +10,7 @@ import (
10
"os"
11
"os/user"
12
"path/filepath"
13
+ "runtime"
14
"runtime/debug"
15
"strconv"
16
"strings"
@@ -97,6 +98,9 @@ func launchSelfLater() {
97
98
}
99
100
func main() {
101
+ // prevents bad errors in OSX, such as [NS...] is only safe to invoke on the main thread.
102
+ runtime.LockOSThread()
103
+
104
// Parse regular flags
105
flag.Parse()
106
0 commit comments