mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
wezterm: add env bootstrap to mux server, too
This commit is contained in:
parent
83d604fe29
commit
f8c35f191b
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -4174,6 +4174,7 @@ dependencies = [
|
||||
"async_ossl",
|
||||
"codec",
|
||||
"config",
|
||||
"env-bootstrap",
|
||||
"filedescriptor",
|
||||
"futures",
|
||||
"hostname",
|
||||
|
@ -107,3 +107,12 @@ pub fn set_lang_from_locale() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn bootstrap() {
|
||||
set_wezterm_executable();
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
set_lang_from_locale();
|
||||
|
||||
fixup_appimage();
|
||||
}
|
||||
|
@ -404,12 +404,7 @@ fn run() -> anyhow::Result<()> {
|
||||
}
|
||||
};
|
||||
|
||||
env_bootstrap::set_wezterm_executable();
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
env_bootstrap::set_lang_from_locale();
|
||||
|
||||
env_bootstrap::fixup_appimage();
|
||||
env_bootstrap::bootstrap();
|
||||
|
||||
pretty_env_logger::init_timed();
|
||||
stats::Stats::init()?;
|
||||
|
@ -11,6 +11,7 @@ anyhow = "1.0"
|
||||
async_ossl = { path = "../async_ossl" }
|
||||
codec = { path = "../codec" }
|
||||
config = { path = "../config" }
|
||||
env-bootstrap = { path = "../env-bootstrap" }
|
||||
filedescriptor = { version="0.7", path = "../filedescriptor" }
|
||||
futures = "0.3"
|
||||
hostname = "0.3"
|
||||
|
@ -54,6 +54,8 @@ fn main() {
|
||||
}
|
||||
|
||||
fn run() -> anyhow::Result<()> {
|
||||
env_bootstrap::bootstrap();
|
||||
|
||||
//stats::Stats::init()?;
|
||||
config::designate_this_as_the_main_thread();
|
||||
let _saver = umask::UmaskSaver::new();
|
||||
|
@ -179,12 +179,7 @@ fn main() {
|
||||
}
|
||||
|
||||
fn run() -> anyhow::Result<()> {
|
||||
env_bootstrap::set_wezterm_executable();
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
env_bootstrap::set_lang_from_locale();
|
||||
|
||||
env_bootstrap::fixup_appimage();
|
||||
env_bootstrap::bootstrap();
|
||||
|
||||
pretty_env_logger::init_timed();
|
||||
let _saver = umask::UmaskSaver::new();
|
||||
|
Loading…
Reference in New Issue
Block a user