Use ARGV from main() instead of importing system utils

This commit is contained in:
Rafostar
2021-01-05 22:49:54 +01:00
parent a0ad8bf70f
commit 234a44a34a

View File

@@ -1,13 +1,12 @@
imports.gi.versions.Gdk = '4.0'; imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0'; imports.gi.versions.Gtk = '4.0';
const System = imports.system;
const { Gst } = imports.gi; const { Gst } = imports.gi;
const { App } = imports.clapper_src.app; const { App } = imports.clapper_src.app;
Gst.init(null); Gst.init(null);
function main() function main(argv)
{ {
new App().run([System.programInvocationName].concat(ARGV)); new App().run(argv);
} }