Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
don't hardcode Sublime path on Windows
Browse files Browse the repository at this point in the history
the Sublime install path is inconsistent between Windows versions
  • Loading branch information
Mitchell-Riley authored and Mitchell-Riley committed Jul 9, 2015
1 parent b162eaa commit 6160abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/sublime/sublime.go
Expand Up @@ -70,8 +70,8 @@ func (s *Sublime) Install() error {
st_paths = append(st_paths, filepath.Join(u.HomeDir, ".config", "sublime-text-2", "Packages"))
st_paths = append(st_paths, filepath.Join(u.HomeDir, ".config", "sublime-text-3", "Packages"))
case "windows":
st_paths = append(st_paths, filepath.Join(u.HomeDir, "AppData", "Roaming", "Sublime Text 2", "Packages"))
st_paths = append(st_paths, filepath.Join(u.HomeDir, "AppData", "Roaming", "Sublime Text 3", "Packages"))
st_paths = append(st_paths, filepath.Join(os.Getenv("APPDATA"), "Sublime Text 2", "Packages"))
st_paths = append(st_paths, filepath.Join(os.Getenv("APPDATA"), "Sublime Text 3", "Packages"))
default:
return fmt.Errorf("Don't know where to install Sublime Text files on OS %s", runtime.GOOS)
}
Expand Down

0 comments on commit 6160abe

Please sign in to comment.