Skip to content

Commit

Permalink
Fix user directory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
adrg committed Nov 7, 2019
1 parent 72dc7b2 commit 3bc76b4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions paths_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func initBaseDirs(home string) {
func initUserDirs(home string) {
UserDirs.Desktop = xdgPath(envDesktopDir, filepath.Join(home, "Desktop"))
UserDirs.Download = xdgPath(envDownloadDir, filepath.Join(home, "Downloads"))
UserDirs.Documents = xdgPath(envDownloadDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envDownloadDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envDownloadDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envDownloadDir, filepath.Join(home, "Movies"))
UserDirs.Templates = xdgPath(envDownloadDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envDownloadDir, filepath.Join(home, "Public"))
UserDirs.Documents = xdgPath(envDocumentsDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envMusicDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envPicturesDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envVideosDir, filepath.Join(home, "Movies"))
UserDirs.Templates = xdgPath(envTemplatesDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envPublicShareDir, filepath.Join(home, "Public"))
}
12 changes: 6 additions & 6 deletions paths_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ func initBaseDirs(home string) {
func initUserDirs(home string) {
UserDirs.Desktop = xdgPath(envDesktopDir, filepath.Join(home, "Desktop"))
UserDirs.Download = xdgPath(envDownloadDir, filepath.Join(home, "Downloads"))
UserDirs.Documents = xdgPath(envDownloadDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envDownloadDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envDownloadDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envDownloadDir, filepath.Join(home, "Videos"))
UserDirs.Templates = xdgPath(envDownloadDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envDownloadDir, filepath.Join(home, "Public"))
UserDirs.Documents = xdgPath(envDocumentsDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envMusicDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envPicturesDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envVideosDir, filepath.Join(home, "Videos"))
UserDirs.Templates = xdgPath(envTemplatesDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envPublicShareDir, filepath.Join(home, "Public"))
}
12 changes: 6 additions & 6 deletions paths_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ func initUserDirs(home string) {

UserDirs.Desktop = xdgPath(envDesktopDir, filepath.Join(home, "Desktop"))
UserDirs.Download = xdgPath(envDownloadDir, filepath.Join(home, "Downloads"))
UserDirs.Documents = xdgPath(envDownloadDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envDownloadDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envDownloadDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envDownloadDir, filepath.Join(home, "Videos"))
UserDirs.Templates = xdgPath(envDownloadDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envDownloadDir, publicDir)
UserDirs.Documents = xdgPath(envDocumentsDir, filepath.Join(home, "Documents"))
UserDirs.Music = xdgPath(envMusicDir, filepath.Join(home, "Music"))
UserDirs.Pictures = xdgPath(envPicturesDir, filepath.Join(home, "Pictures"))
UserDirs.Videos = xdgPath(envVideosDir, filepath.Join(home, "Videos"))
UserDirs.Templates = xdgPath(envTemplatesDir, filepath.Join(home, "Templates"))
UserDirs.PublicShare = xdgPath(envPublicShareDir, publicDir)
}

0 comments on commit 3bc76b4

Please sign in to comment.