Hi,

just tried it and it works for me.
You shouldnt run Gtk.main(), since aewsome has already a main loop running

tried it with:
https://github.com/pavouk/lgi/blob/master/samples/gtkhello.lua
and commented Gtk.main() out in the last line .

what kind of error messages are you getting ?

On 11/23/2013 08:56 PM, Carlos Morata Castillo wrote:
Hi to everyone and congratulations for your awesome work. :)

I have this file:

====gtk.lua=============
local lgi = require 'lgi'
local GObject = lgi.GObject
local Gtk = lgi.Gtk
========================

I try this on a shell:
bash# echo dofile('gtk.lua') | awesome-client

And my system is flooded with errors messages.
If I don't include lgi.Gtk everything's ok.

It's kind of mistery because:
bash#
lua gtk.lua

works like a charm.


Everything comes cause I'm developing a widget that once clicked shows a
form with GTK to get things inside a db (with luasql.sqlite).
Everything works great if I execute it with "lua file.lua" but I have to
integrate it in awesome wm because I need to retrieve a global table in
awesome wm enviroment.
So I have 2 issues:
-Getting work lgi.Gtk in awesome
-Getting _G.mytable from a lua script launched in a shell


Thanks!



--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to