[polari] thumbnailer: Use programArgs instead of ARGV



commit cdd942c7eb3e79da8f4b9caccd1e8629c2ca2d47
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Aug 20 01:16:51 2021 +0200

    thumbnailer: Use programArgs instead of ARGV
    
    It's confusing to use two different properties for the same thing,
    and as we switched to the new API in the main executable, we should
    do the same for the thumbnailer.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/214

 src/thumbnailer.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/thumbnailer.js b/src/thumbnailer.js
index 7dada3a5..4b3dabf8 100644
--- a/src/thumbnailer.js
+++ b/src/thumbnailer.js
@@ -5,6 +5,8 @@ import GLib from 'gi://GLib';
 import GObject from 'gi://GObject';
 import Gtk from 'gi://Gtk?version=3.0';
 
+import { programArgs } from 'system';
+
 import gi from 'gi';
 let WebKit2;
 
@@ -228,6 +230,6 @@ class App {
     }
 }
 
-let [url, filename] = ARGV;
+let [url, filename] = programArgs;
 let app = new App(url, filename);
 app.run();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]