mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 15:06:23 -07:00
20 lines
412 B
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
|
|
}
|