diff --git a/src/main.js b/src/main.js index 7b69def3..ed62309d 100644 --- a/src/main.js +++ b/src/main.js @@ -5,14 +5,13 @@ imports.gi.versions.Soup = '2.4'; pkg.initGettext(); const { GstClapper, Gtk, Adw } = imports.gi; - -GstClapper.Clapper.gst_init(null); -Gtk.init(); -Adw.init(); - const { App } = imports.src.app; function main(argv) { + GstClapper.Clapper.gst_init(null); + Gtk.init(); + Adw.init(); + new App().run(argv); } diff --git a/src/mainRemote.js b/src/mainRemote.js index 7a42bbb9..5d3f4b9a 100644 --- a/src/mainRemote.js +++ b/src/mainRemote.js @@ -5,10 +5,6 @@ imports.gi.versions.Soup = '2.4'; pkg.initGettext(); const { Gtk, Adw } = imports.gi; - -Gtk.init(); -Adw.init(); - const { AppRemote } = imports.src.appRemote; const Misc = imports.src.misc; @@ -19,5 +15,8 @@ Misc.appId += '.' + ID_POSTFIX; function main(argv) { + Gtk.init(); + Adw.init(); + new AppRemote().run(argv); }