mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
test/utils: Make (WAYLAND_)DISPLAY passing to client optional
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2237>
This commit is contained in:
parent
1886785b3d
commit
1f758dd78c
@ -477,12 +477,19 @@ meta_test_client_new (MetaContext *context,
|
||||
wayland_display_name = meta_wayland_get_wayland_display_name (compositor);
|
||||
x11_display_name = meta_wayland_get_public_xwayland_display_name (compositor);
|
||||
|
||||
g_subprocess_launcher_setenv (launcher,
|
||||
"WAYLAND_DISPLAY", wayland_display_name,
|
||||
TRUE);
|
||||
g_subprocess_launcher_setenv (launcher,
|
||||
"DISPLAY", x11_display_name,
|
||||
TRUE);
|
||||
if (wayland_display_name)
|
||||
{
|
||||
g_subprocess_launcher_setenv (launcher,
|
||||
"WAYLAND_DISPLAY", wayland_display_name,
|
||||
TRUE);
|
||||
}
|
||||
|
||||
if (x11_display_name)
|
||||
{
|
||||
g_subprocess_launcher_setenv (launcher,
|
||||
"DISPLAY", x11_display_name,
|
||||
TRUE);
|
||||
}
|
||||
|
||||
subprocess = g_subprocess_launcher_spawn (launcher,
|
||||
error,
|
||||
|
Loading…
Reference in New Issue
Block a user