1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00
gochan/cmd/gochan-installer/paths_unix.go

20 lines
412 B
Go

//go:build !darwin && !windows
package main
import (
"slices"
"github.com/gochan-org/gochan/pkg/config"
)
var (
cfgPaths = slices.DeleteFunc(config.StandardConfigSearchPaths, func(s string) bool {
return s == "/opt/homebrew/etc/gochan/gochan.json"
}) // Exclude Homebrew path on non-macOS systems
)
func init() {
slices.Reverse(cfgPaths) // /etc/gochan/gochan.json should be first on *nix systems
}