Yoda/src/main.rs
2025-03-08 08:40:16 +02:00

25 lines
553 B
Rust

mod app;
mod profile;
mod tool;
use gtk::glib::ExitCode;
use profile::Profile;
fn main() -> ExitCode {
use app::App;
if let Err(e) = gtk::init() {
eprintln!("Failed to initialize GTK: {e}");
return ExitCode::FAILURE;
}
match Profile::init() {
Ok(profile) => match App::build(profile).run() {
Ok(app) => return app,
Err(e) => eprintln!("Failed to initialize application: {e}"),
},
Err(e) => eprintln!("Failed to initialize profile: {e}"),
}
ExitCode::FAILURE
}