mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
bcc7c65f77
commit
e4c3554c22
1 changed files with 3 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue