mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
xwayland: Shut up conditionally
This commit is contained in:
parent
ef65848d11
commit
d699b2409a
@ -372,14 +372,22 @@ meta_xwayland_start (MetaXWaylandManager *manager,
|
||||
"-nolisten",
|
||||
"all",
|
||||
NULL };
|
||||
int flags = 0;
|
||||
|
||||
flags |= G_SPAWN_LEAVE_DESCRIPTORS_OPEN;
|
||||
flags |= G_SPAWN_DO_NOT_REAP_CHILD;
|
||||
|
||||
/* xwayland, please. */
|
||||
if (getenv ("XWAYLAND_STFU"))
|
||||
{
|
||||
flags |= G_SPAWN_STDOUT_TO_DEV_NULL;
|
||||
flags |= G_SPAWN_STDERR_TO_DEV_NULL;
|
||||
}
|
||||
|
||||
if (g_spawn_async (NULL, /* cwd */
|
||||
args,
|
||||
env,
|
||||
G_SPAWN_LEAVE_DESCRIPTORS_OPEN |
|
||||
G_SPAWN_DO_NOT_REAP_CHILD |
|
||||
G_SPAWN_STDOUT_TO_DEV_NULL |
|
||||
G_SPAWN_STDERR_TO_DEV_NULL,
|
||||
flags,
|
||||
uncloexec,
|
||||
GINT_TO_POINTER (sp[1]),
|
||||
&pid,
|
||||
|
Loading…
Reference in New Issue
Block a user