2014-02-11 17:57:03 -06:00
|
|
|
// 11 february 2014
|
|
|
|
package main
|
|
|
|
|
2014-02-15 15:27:07 -06:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
)
|
2014-02-11 17:57:03 -06:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
initDone := make(chan error)
|
|
|
|
go ui(initDone)
|
|
|
|
err := <-initDone
|
|
|
|
if err != nil {
|
2014-02-15 15:27:07 -06:00
|
|
|
// TODO provide copying instructions? will need to be system-specific
|
|
|
|
MsgBoxError("UI Library Init Failure",
|
|
|
|
"A failure occured during UI library initialization:\n%v\n" +
|
|
|
|
"Please report this to the application developer or on http://github.com/andlabs/ui.",
|
|
|
|
err)
|
|
|
|
os.Exit(1)
|
2014-02-11 17:57:03 -06:00
|
|
|
}
|
|
|
|
}
|