Javascript main.js中的Gtk.init出错

Javascript main.js中的Gtk.init出错,javascript,gtk,gnome,Javascript,Gtk,Gnome,我跟在后面。但是当我尝试运行它时,我不断地得到这个错误 JS ERROR: !!! Exception was: Error: Expected type utf8 for Argument 'argv' but got type 'number' (nil) JS ERROR: !!! message = '"Expected type utf8 for Argument 'argv' but got type 'number' (nil)"' JS ERR

我跟在后面。但是当我尝试运行它时,我不断地得到这个错误

    JS ERROR: !!!   Exception was: Error: Expected type utf8 for Argument 'argv' but got type 'number' (nil)
    JS ERROR: !!!     message = '"Expected type utf8 for Argument 'argv' but got type 'number' (nil)"'
    JS ERROR: !!!     fileName = '"main.js"'
    JS ERROR: !!!     lineNumber = '146'
    JS ERROR: !!!     stack = '"@main.js:146
"'
Error: Expected type utf8 for Argument 'argv' but got type 'number' (nil)
我真的不知道怎么了。。错误发生在第146行

Gtk.init(0,null)


使用的代码可用。

是。这是一只虫子。使用补丁查看此消息:


您应该更改
Gtk.init(0,null)
by
Gtk.init(null,null)

提交列表中的消息是关于另一个教程的,但它是文档中的一个常见错误。