tests/_client.lua: Don't use GtkApplication

GtkApplication does magic like ensuring that the application ID is unique and
there is only a single instance of each application running. We don't want nor
need that for the tests.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-05-01 19:36:53 +02:00
parent bcc7c65f77
commit e4c3554c22
1 changed files with 3 additions and 8 deletions

View File

@ -15,17 +15,12 @@ return function(class, title, use_sn)
"local window = Gtk.Window {",
" default_width = 100,",
" default_height = 100,",
" on_destroy = Gtk.main_quit,",
" title = '",title,
"'};",
"window:set_wmclass(class, class);",
"local app = Gtk.Application {",
" application_id = 'org.awesomewm.tests.",class,
"'};",
"function app:on_activate()",
" window.application = self;",
" window:show_all();",
"end;",
"app:run {''}"
"window:show_all();",
"Gtk:main{...}"
}}
return spawn(cmd, use_sn)