Skip to content

Commit

Permalink
fix: default config template wrong key
Browse files Browse the repository at this point in the history
  • Loading branch information
terasum committed Sep 19, 2023
1 parent ba0afd9 commit eeae3fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package entry
package config

const configTmpl = `
DictBaseDir="$HOME/dicts"
const ConfigTmpl = `
BaseDictDir="$HOME/dicts"
`
2 changes: 1 addition & 1 deletion internal/entry/app_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func defaultConfigPath() (string, error) {
}
configFile := filepath.Join(home, "medict.toml")
if _, err = os.Stat(configFile); errors.Is(err, os.ErrNotExist) {
err = os.WriteFile(configFile, []byte(configTmpl), 0644)
err = os.WriteFile(configFile, []byte(config.ConfigTmpl), 0644)
if err != nil {
return "", err
}
Expand Down

0 comments on commit eeae3fe

Please sign in to comment.