Skip to content
Snippets Groups Projects
Verified Commit 6aa6b0cd authored by meskio's avatar meskio :tent:
Browse files

[bug] lock main goroutine into OS thread

- Resolves: #52
parent 63aab32a
Branches
Tags
No related merge requests found
......@@ -20,6 +20,7 @@ import (
"fmt"
"log"
"os"
"runtime"
"0xacab.org/leap/bitmask-systray/bitmask"
"github.com/jmshal/go-locale"
......@@ -35,6 +36,10 @@ var version string
var printer *message.Printer
func main() {
// on OSX sometimes the systray doesn't work (bitmask-systray#52)
// locking the main thread into an OS thread fixes the problem
runtime.LockOSThread()
versionFlag := flag.Bool("version", false, "Version of the bitmask-systray")
flag.Parse()
if *versionFlag {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment