From 234a44a34ada2fa88e62397315b512dd1b4eaca5 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Tue, 5 Jan 2021 22:49:54 +0100 Subject: [PATCH] Use ARGV from main() instead of importing system utils --- clapper_src/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clapper_src/main.js b/clapper_src/main.js index c757e2c9..7eddc9af 100644 --- a/clapper_src/main.js +++ b/clapper_src/main.js @@ -1,13 +1,12 @@ imports.gi.versions.Gdk = '4.0'; imports.gi.versions.Gtk = '4.0'; -const System = imports.system; const { Gst } = imports.gi; const { App } = imports.clapper_src.app; Gst.init(null); -function main() +function main(argv) { - new App().run([System.programInvocationName].concat(ARGV)); + new App().run(argv); }