Skip to content

Commit

Permalink
Merge pull request #501 from goatastronaut0212/fix-samplemactabfile-path
Browse files Browse the repository at this point in the history
Fix initial config
  • Loading branch information
luongthanhlam authored Jul 20, 2024
2 parents ad57762 + b9f1257 commit 8d67bdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ var DefaultBrowserList = []string{

func getEngineSubFile(fileName string) string {
if _, err := os.Stat(fileName); err == nil {
// return source code data/macro.tpl.txt path
if absPath, err := filepath.Abs(fileName); err == nil {
return absPath
}
}

// return installation data/macro.tpl.txt path
fileName = "../../share/ibus-bamboo/" + fileName
return filepath.Join(filepath.Dir(os.Args[0]), fileName)
}

Expand Down

0 comments on commit 8d67bdc

Please sign in to comment.