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 f0c4360210
commit 7550c2321c
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -85,7 +85,7 @@ impl Config {
pub fn generate_file(typ: ConfigType) -> Result<PathBuf> {
let path = match typ {
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();