Revert "Export magic constants during server initialization"

This reverts commit 09fbdde6c9.
This commit is contained in:
ovalkonia 2024-09-06 22:36:45 +03:00
parent bd09b881af
commit c322a51e6f

View File

@ -33,6 +33,7 @@ pub fn initialize_server<B: DisplayBackend>(
log::info!("Loading paths: {}", &paths);
let read_config = config::read_from_eww_paths(&paths);
let eww_config = match read_config {
Ok(config) => config,
Err(err) => {
@ -41,10 +42,6 @@ pub fn initialize_server<B: DisplayBackend>(
}
};
for (name, definition) in config::inbuilt::get_magic_constants(&paths) {
std::env::set_var(name.0, definition.initial_value.0);
}
cleanup_log_dir(paths.get_log_dir())?;
if should_daemonize {