From 68285db2c187b350bb2b1707071382bd9fbaa2a5 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 26 Feb 2022 22:42:25 +0100 Subject: Give database path from argument --- src/gui/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/mod.rs b/src/gui/mod.rs index a8a025c..c33500b 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -18,7 +18,8 @@ pub fn run(conn: Connection) { let app = gtk::Application::new(Some("me.guyonvarch.calendar"), Default::default()); app.connect_startup(|_| load_style()); app.connect_activate(move |app| build_ui(conn.clone(), app)); - app.run(); + let args: [&str; 0] = []; + app.run_with_args(&args); } fn build_ui(conn: Rc, app: >k::Application) { -- cgit v1.2.3