diff --git a/ui/app/datadir.go b/ui/app/datadir.go index 31e5453f..1283e6b9 100644 --- a/ui/app/datadir.go +++ b/ui/app/datadir.go @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Unlicense OR MIT -// +build !android +// +build !android,go1.13 package app diff --git a/ui/app/datadir_go112.go b/ui/app/datadir_go112.go new file mode 100644 index 00000000..4aeaaf93 --- /dev/null +++ b/ui/app/datadir_go112.go @@ -0,0 +1,12 @@ +// 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() +}