Skip to content

Commit

Permalink
fix: keep the name of env variable the same as librime
Browse files Browse the repository at this point in the history
  • Loading branch information
wlh320 committed Aug 27, 2024
1 parent cc24758 commit 5037bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn expand_tilde(path: impl AsRef<Path>) -> PathBuf {
/// rime's default shared data dir
pub fn rime_default_shared_data_dir() -> &'static str {
// read environment variable first
if let Some(var) = option_env!("RIME_DEFAULT_DATA_DIR") {
if let Some(var) = option_env!("RIME_DATA_DIR") {
var
} else if cfg!(target_os = "macos") {
"/Library/Input Methods/Squirrel.app/Contents/SharedSupport"
Expand Down

0 comments on commit 5037bb6

Please sign in to comment.