summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 4f4688e..acb9f66 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,7 @@ use relm4::{ComponentParts, ComponentSender, RelmApp, Component, ComponentContro
 
 use bowl::PostComposerModel;
 
-const APPLICATION_ID: &str = "xyz.vikanezrimaya.kittybox.Bowl";
+use bowl::APPLICATION_ID;
 
 static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new(
     glib::GlibLoggerFormat::Plain,
@@ -15,5 +15,10 @@ fn main() {
     log::set_max_level(log::LevelFilter::Debug);
 
     let app = RelmApp::new(APPLICATION_ID);
-    app.run::<PostComposerModel>( () );
+    app.run_async::<PostComposerModel>(
+        bowl::micropub::Client::new(
+            glib::Uri::parse(&std::env::var("MICROPUB_URI").unwrap(), glib::UriFlags::NONE).unwrap(),
+            std::env::var("MICROPUB_TOKEN").unwrap(),
+        )
+    );
 }