Tie the Zed application ID to the release channel (#11335)
Since we do want to have different versions of Zed running on the same Linux install, we need to give them different application IDs so they're not grouped together as the same application. This changes the app_id depending on the releaes channel and, crucially, it also matches them up with the bundle identifiers that we use on macOS. Release Notes: - N/A
This commit is contained in:
parent
4024b9ac4d
commit
61a60d37a2
7 changed files with 38 additions and 14 deletions
|
@ -87,6 +87,7 @@ pub fn build_window_options(display_uuid: Option<Uuid>, cx: &mut AppContext) ->
|
|||
.into_iter()
|
||||
.find(|display| display.uuid().ok() == Some(uuid))
|
||||
});
|
||||
let app_id = ReleaseChannel::global(cx).app_id();
|
||||
|
||||
WindowOptions {
|
||||
titlebar: Some(TitlebarOptions {
|
||||
|
@ -102,7 +103,7 @@ pub fn build_window_options(display_uuid: Option<Uuid>, cx: &mut AppContext) ->
|
|||
display_id: display.map(|display| display.id()),
|
||||
fullscreen: false,
|
||||
window_background: cx.theme().window_background_appearance(),
|
||||
app_id: Some("dev.zed.Zed".to_owned()),
|
||||
app_id: Some(app_id.to_owned()),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3106,6 +3107,7 @@ mod tests {
|
|||
notifications::init(app_state.client.clone(), app_state.user_store.clone(), cx);
|
||||
workspace::init(app_state.clone(), cx);
|
||||
Project::init_settings(cx);
|
||||
release_channel::init("0.0.0", cx);
|
||||
command_palette::init(cx);
|
||||
language::init(cx);
|
||||
editor::init(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue