From 36fd62e9dc4680e1f66d1136e6aa404a1a398294 Mon Sep 17 00:00:00 2001 From: Ville Hakulinen Date: Sat, 6 May 2023 14:07:05 +0300 Subject: [PATCH] ui: don't pass cli arguments to gtk --- ui/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/main.rs b/ui/src/main.rs index e4dc1bc5..7dc4d31d 100644 --- a/ui/src/main.rs +++ b/ui/src/main.rs @@ -36,7 +36,9 @@ fn main() -> ExitCode { app.connect_activate(move |app| build_ui(app, &args)); - app.run() + // NOTE(ville): Pass empty arguments to the gtk application. We handle + // those manually. + app.run_with_args::<&str>(&[]) } fn build_ui(app: >k::Application, args: &arguments::BoxedArguments) {