summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 985843f..cc041e9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -191,6 +191,11 @@ async fn build(app: &gtk::Application, opts: &Options) -> Result<(), Error> {
fn main() {
env_logger::init();
+ if let Err(err) = gtk::init() {
+ error!("Failed to initialize gtk: {}", err);
+ return;
+ }
+
let opts = Options::clap();
let opts = Options::from_clap(&opts.get_matches_safe().unwrap_or_else(
|mut err| {