[gnome-games/wip/exalm/search-provider: 881/886] main: Stop grilo from overriding options



commit e7687bcf13dd9c41eac0ed3806ed31f1449ab00f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Feb 11 03:55:01 2020 +0500

    main: Stop grilo from overriding options
    
    Pass empty params into Grl.init(). This is a terrible workaround, but it
    works.

 src/main.vala | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/main.vala b/src/main.vala
index 493dad22..e641fbf8 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -5,7 +5,10 @@ int main (string[] args) {
        Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
        Intl.textdomain (Config.GETTEXT_PACKAGE);
 
-       Grl.init (ref args);
+       string[] empty_args = {};
+       unowned var unowned_args = empty_args;
+
+       Grl.init (ref unowned_args);
        Hdy.init (ref args);
 
        var app = new Games.Application ();


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