dbus-launch: add --exit-with-x11 option
authorSimon McVittie <smcv@debian.org>
Mon, 11 Jul 2016 11:10:39 +0000 (12:10 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 20 Jul 2016 12:32:36 +0000 (13:32 +0100)
commitb04d9324fb90b61ad3165aba7e85c02a603ffd5b
tree7aff998e8228ce19db7998d26ff06449cd1da3b6
parentb36708830b8a0e5c1166a882cba5bbe7afa966ca
dbus-launch: add --exit-with-x11 option

This is more suitable for distributions' Xsession scripts: it verifies
that X is already available, and so never results in an attempt to poll
stdin.

We read the machine UUID because it is needed to set the X atoms.
x11_init() assumes that the machine UUID (global variable) has been
set, either via read_machine_uuid_if_needed() or save_machine_uuid().
This is pretty tangled, but to make The Right Thing happen
automatically, we'd need to redo dbus-launch in terms of DBusError.

Reviewed-by: Will Thompson
Reviewed-by: Thiago Macieira
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39197
Signed-off-by: Simon McVittie <smcv@debian.org>
doc/dbus-launch.1.xml.in
tools/dbus-launch.c