Skip to content

Commit

Permalink
Merge branch '22-xdg-dir'
Browse files Browse the repository at this point in the history
  • Loading branch information
alanxoc3 committed Oct 10, 2021
2 parents 78167a2 + 8792f80 commit 4ff2d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func setCmdMeta(app, cmd *cobra.Command, argMin, argMax int, use, short string)
func main() {
s := cmds.State{}
s.Now = time.Now()
s.DataDir = config.GetAppDir("ttrack", "TTRACK_DATA_DIR" , "XDG_DATA_HOME" , "/.local/share/ttrack")
s.CacheDir = config.GetAppDir("ttrack", "TTRACK_CACHE_DIR", "XDG_CACHE_HOME", "/.cache/ttrack")
s.DataDir = config.GetAppDir("ttrack", "TTRACK_DATA_DIR" , "XDG_DATA_HOME" , "/.local/share")
s.CacheDir = config.GetAppDir("ttrack", "TTRACK_CACHE_DIR", "XDG_CACHE_HOME", "/.cache")

app := &cobra.Command{
Use: "ttrack [command]",
Expand Down

0 comments on commit 4ff2d1b

Please sign in to comment.