2019-10-28 12:46:57 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2019-11-22 16:17:17 -05:00
|
|
|
"log"
|
|
|
|
|
2019-10-28 12:46:57 -04:00
|
|
|
"gioui.org/app"
|
|
|
|
)
|
|
|
|
|
|
|
|
var confDir string
|
2019-11-22 16:44:26 -05:00
|
|
|
var fontSize float32 = 24
|
2019-10-28 12:46:57 -04:00
|
|
|
|
|
|
|
func getConfDir() string {
|
2019-11-22 16:17:17 -05:00
|
|
|
if confDir == "" {
|
|
|
|
var err error
|
|
|
|
confDir,err = app.DataDir()
|
|
|
|
if err != nil {
|
|
|
|
log.Fatal("Cannot get configuration directory")
|
|
|
|
}
|
2019-10-28 12:46:57 -04:00
|
|
|
}
|
|
|
|
return confDir
|
|
|
|
}
|