From 5037bb6dc91f71447520d9e6ac09bb95410b131d Mon Sep 17 00:00:00 2001 From: zilcH40 Date: Tue, 27 Aug 2024 20:49:21 +0800 Subject: [PATCH] fix: keep the name of env variable the same as librime --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index f5eab56..5ad5157 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -83,7 +83,7 @@ pub fn expand_tilde(path: impl AsRef) -> 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"