Allow X11 autolaunch to be disabled even if the headers/libraries are there
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 24 Feb 2011 18:57:05 +0000 (18:57 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 24 Feb 2011 18:58:18 +0000 (18:58 +0000)
commitf04e52a2e5402a2bd17a5e923402df8e79dfd940
tree1f9bd8d359331d785bf89aa228fd81f213105153
parent407c11167273ca388de6f0e770272067bff89ffb
Allow X11 autolaunch to be disabled even if the headers/libraries are there

In an embedded system where the D-Bus session is a core part of the
environment, like Maemo, accidentally auto-launching a second session bus
(for instance for a concurrent ssh session) is a bad idea - it can lead
to a "split brain" situation where half the applications in the GUI are
using a different bus. In these controlled environments, it'd be useful
to prevent autolaunch from ever happening.

(As a side benefit, the changes to configure.in also mean that packagers
can explicitly --enable-x11-autolaunch, to make sure that failure to find
X will make compilation fail cleanly.)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997
Bug-NB: NB#219964
README
cmake/CMakeLists.txt
configure.in
dbus/dbus-sysdeps-unix.c