fix: linux file permissions problem

check-config configuration file moved from temp_dir to home_dir, resolved
This commit is contained in:
huzibaca 2024-10-30 09:08:44 +08:00
parent 73bad8f355
commit b809b9bb80

View File

@ -85,7 +85,7 @@ impl Config {
pub fn generate_file(typ: ConfigType) -> Result<PathBuf> { pub fn generate_file(typ: ConfigType) -> Result<PathBuf> {
let path = match typ { let path = match typ {
ConfigType::Run => dirs::app_home_dir()?.join(RUNTIME_CONFIG), ConfigType::Run => dirs::app_home_dir()?.join(RUNTIME_CONFIG),
ConfigType::Check => temp_dir().join(CHECK_CONFIG), ConfigType::Check => dirs::app_home_dir()?.join(CHECK_CONFIG),
}; };
let runtime = Config::runtime(); let runtime = Config::runtime();