blob: 31d7d24b3d08fdb4405a03d2d9c2e638e89a7a52 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use adw::prelude::GtkWindowExt;
use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentController};
use bowl::App;
use bowl::APPLICATION_ID;
static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new(
glib::GlibLoggerFormat::Plain,
glib::GlibLoggerDomain::CrateTarget,
);
fn main() {
log::set_logger(&GLIB_LOGGER).unwrap();
log::set_max_level(log::LevelFilter::Debug);
let app = RelmApp::new(APPLICATION_ID);
app.run_async::<App>(
bowl::micropub::Client::new(
glib::Uri::parse(&std::env::var("MICROPUB_URI").unwrap(), glib::UriFlags::NONE).unwrap(),
std::env::var("MICROPUB_TOKEN").unwrap(),
)
);
}
|