XDG_CONFIG_HOME

pull/15/head
Miguel Mota 6 years ago
parent e9e480aab9
commit ab90056cf7

@ -31,6 +31,11 @@ func userHomeDir() string {
home = os.Getenv("USERPROFILE")
}
return home
} else if runtime.GOOS == "linux" {
home := os.Getenv("XDG_CONFIG_HOME")
if home != "" {
return home
}
}
return os.Getenv("HOME")
}

Loading…
Cancel
Save