Fix handling of --system-specs
argument so it happens before Application::new
(#29240)
Fixes issue described in [description of #28683](https://github.com/zed-industries/zed/issues/28683#issue-2992849891) Makes sure that the `--system-specs` arg is handled before `Application::new` is called, so that it can be used even when Zed is panicking during app initialization (e.g. Failing to create a Vulkan context in blade) Release Notes: - Fixed an issue where the `--system-specs` arg wouldn't work if Zed panicked during app initialization (e.g. When failing to create a Vulkan context in blade)
This commit is contained in:
parent
8e7c145f20
commit
aefb3aa2fa
3 changed files with 21 additions and 20 deletions
|
@ -428,7 +428,7 @@ pub fn execute_run(
|
|||
let git_hosting_provider_registry = Arc::new(GitHostingProviderRegistry::new());
|
||||
gpui::Application::headless().run(move |cx| {
|
||||
settings::init(cx);
|
||||
let app_version = AppVersion::init(env!("ZED_PKG_VERSION"));
|
||||
let app_version = AppVersion::load(env!("ZED_PKG_VERSION"));
|
||||
release_channel::init(app_version, cx);
|
||||
gpui_tokio::init(cx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue