diff options
author | Simon Garrelou <simon@sixfoisneuf.fr> | 2024-02-02 14:52:23 +0100 |
---|---|---|
committer | Simon Garrelou <simon@sixfoisneuf.fr> | 2024-02-02 14:52:23 +0100 |
commit | f13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d (patch) | |
tree | 0e64102a0c9087b06b4aae15f8980e8608b2af5c /src/config.go | |
parent | e373eaf07bb0102819142d4a70ee0d83a1e9370b (diff) | |
download | termsonic-f13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d.tar.gz termsonic-f13b77b8237dbc5dbe8aaf9c4dc342b2f15c375d.zip |
Add support for OpenBSD
Co-authored-by: Russ Sharek <bsdclown@disroot.org>
Diffstat (limited to 'src/config.go')
-rw-r--r-- | src/config.go | 2 |
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 | ||
46 | func getConfigFilePath() (string, error) { | 46 | func 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") |