Dbus-run-session
start a process as a new D-Bus session
DESCRIPTION
dbus-run-session is used to start a session bus instance of dbus-daemon from a shell script, and start a specified program in that session. The dbus-daemon will run for as long as the program does, after which it will terminate.
One use is to run a shell with its own dbus-daemon in a text-mode or SSH session, and have the dbus-daemon terminate automatically on leaving the sub-shell, like this:
or to replace the login shell altogether, by combining dbus-run-session with the exec builtin:
Another use is to run regression tests and similar things in an isolated D-Bus session, to avoid either interfering with the "real" D-Bus session or relying on there already being a D-Bus session active, for instance:
or (in automake(1)):
See also
- dbus
- gnome-keyring-daemon