Files
gio/ui/app/datadir_go112.go
T
Elias Naur 112368a2e3 ui/app: add a DataDir fallback to Go 1.12
o.UserConfigDir is introduced in Go 1.13, which is not released yet.
Add a Go 1.12 stopgab until then.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-13 13:28:58 +02:00

13 lines
217 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
// +build !android,!go1.13
package app
import "os"
func dataDir() (string, error) {
// Use a quick workaround until we can require go 1.13.
return os.UserHomeDir()
}