aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Garrelou <simon@sixfoisneuf.fr>2024-02-02 14:52:23 +0100
committerSimon Garrelou <simon@sixfoisneuf.fr>2024-02-02 14:52:23 +0100
commitf13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d (patch)
tree0e64102a0c9087b06b4aae15f8980e8608b2af5c
parente373eaf07bb0102819142d4a70ee0d83a1e9370b (diff)
downloadtermsonic-f13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d.tar.gz
termsonic-f13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d.zip
Add support for OpenBSD
Co-authored-by: Russ Sharek <bsdclown@disroot.org>
-rw-r--r--src/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.go b/src/config.go
index 2769cae..8f931ae 100644
--- a/src/config.go
+++ b/src/config.go
@@ -45,7 +45,7 @@ func LoadDefaultConfig() (*Config, error) {
45 45
46func getConfigFilePath() (string, error) { 46func getConfigFilePath() (string, error) {
47 path := "" 47 path := ""
48 if runtime.GOOS == "linux" { 48 if runtime.GOOS == "linux" || runtime.GOOS == "openbsd" {
49 configDir := os.Getenv("XDG_CONFIG_DIR") 49 configDir := os.Getenv("XDG_CONFIG_DIR")
50 if configDir == "" { 50 if configDir == "" {
51 home := os.Getenv("HOME") 51 home := os.Getenv("HOME")