rime-ice/others/script/rime/dir_mac.go

19 lines
274 B
Go

//go:build darwin
// +build darwin
package rime
import (
"log"
"path/filepath"
)
// 获取 macOS Rime 配置目录
func getRimeDirForPlatform() string {
u, err := user.Current()
if err != nil {
log.Fatalln(err)
}
return filepath.Join(u.HomeDir, "Library/Rime")
}