massively simplify run-with-tmp-session-bus.sh by using dbus-run-session
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 7 Feb 2012 19:58:44 +0000 (19:58 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 5 Jun 2013 16:58:52 +0000 (17:58 +0100)
commit9760bdf393211a9bc79432de54cb4252f8724723
treecf192f306a543fd771a77bd91ee5491d56f4ded8
parent9c0ef7028893e4db18fe901ed749784c99a8839f
massively simplify run-with-tmp-session-bus.sh by using dbus-run-session

It turns out that if you don't second-guess the system by catching
SIGINT, the right things happen: it's received by every program in the
foreground process group, including dbus-run-session and dbus-daemon.
Neither of those catch SIGINT (unlike dbus-launch) so they'll exit
gracefully without the wrapper script needing to do anything special.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39196
Reviewed-by: Colin Walters <walters@verbum.org>
tools/run-with-tmp-session-bus.sh