Browse Source

dirs: update path to user data dir

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
bboozzoo/golang
Maciek Borzecki 7 years ago
parent
commit
e222ee0509
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      dirs/dirs.go
  2. +1
    -1
      dirs/dirs_test.go

+ 1
- 1
dirs/dirs.go View File

@ -37,5 +37,5 @@ func UserConfig() string {
} }
func UserData() string { func UserData() string {
return path.Join(UserHome(), ".local", "mconnect")
return path.Join(UserHome(), ".local", "share", "mconnect")
} }

+ 1
- 1
dirs/dirs_test.go View File

@ -25,5 +25,5 @@ func TestUserDirs(t *testing.T) {
assert.Equal(t, dirs.UserCache(), "/home/foo/.cache/mconnect") assert.Equal(t, dirs.UserCache(), "/home/foo/.cache/mconnect")
assert.Equal(t, dirs.UserConfig(), "/home/foo/.config/mconnect") assert.Equal(t, dirs.UserConfig(), "/home/foo/.config/mconnect")
assert.Equal(t, dirs.UserData(), "/home/foo/.local/mconnect")
assert.Equal(t, dirs.UserData(), "/home/foo/.local/share/mconnect")
} }

Loading…
Cancel
Save