Pull app / OS info out of GPUI, add Linux information, make fallible window initialization (#12869)

TODO:
- [x] Finish GPUI changes on other operating systems 

This is a largely internal change to how we report data to our
diagnostics and telemetry. This PR also includes an update to our blade
backend which allows us to report errors in a more useful way when
failing to initialize blade.


Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Mikayla Maki
2024-06-11 11:43:12 -07:00
committed by GitHub
co-authored by Conrad Irwin
parent ec9e700e70
commit 80c14c9198
50 changed files with 571 additions and 550 deletions
+2 -1
View File
@@ -76,6 +76,7 @@ fn main() {
cx.open_window(options, |cx| {
cx.activate(false);
cx.new_view(|_cx| AnimationExample {})
});
})
.unwrap();
});
}
+2 -1
View File
@@ -34,6 +34,7 @@ fn main() {
text: "World".into(),
})
},
);
)
.unwrap();
});
}
+2 -1
View File
@@ -93,6 +93,7 @@ fn main() {
local_resource: Arc::new(PathBuf::from_str("examples/image/app-icon.png").unwrap()),
remote_resource: "https://picsum.photos/512/512".into(),
})
});
})
.unwrap();
});
}
+2 -1
View File
@@ -29,7 +29,8 @@ fn main() {
}]);
cx.open_window(WindowOptions::default(), |cx| {
cx.new_view(|_cx| SetMenus {})
});
})
.unwrap();
});
}
+2 -1
View File
@@ -61,7 +61,8 @@ fn main() {
cx.new_view(|_| WindowContent {
text: format!("{:?}", screen.id()).into(),
})
});
})
.unwrap();
}
});
}