diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-01-16 17:35:36 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-01-16 17:35:36 -0500 |
| commit | 5078083aa80279724f834305ca52946c7114b2ca (patch) | |
| tree | 4022334cc6bf251a9c8bc10e46e16bb0a87a37c3 /config/config_windows.go | |
| parent | 6074026163c8d8e03c5f4a3b72067328e1ab78c5 (diff) | |
| download | steam-export-5078083aa80279724f834305ca52946c7114b2ca.tar.gz steam-export-5078083aa80279724f834305ca52946c7114b2ca.tar.xz | |
Pull default configuration into the application, add an edit command
Diffstat (limited to 'config/config_windows.go')
| -rw-r--r-- | config/config_windows.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/config_windows.go b/config/config_windows.go new file mode 100644 index 0000000..39b6b6c --- /dev/null +++ b/config/config_windows.go @@ -0,0 +1,22 @@ +// +build windows + +package config + +import ( + "os" + // "os/exec" + "path/filepath" +) + +var ( + editor string = setEditor() + fn string = filepath.Join(os.Getenv("LOCALAPPDATA"), configFilename) +) + +func setEditor() string { + e := os.Getenv("EDITOR") + if e == "" { + return `C:\Program Files\Windows NT\Accessories\wordpad.exe` + } + return e +} |
