man > dbus-run-session(1)

๐Ÿ“– NAME

dbus-run-session โ€” start a process as a new D-Bus session

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ’ป Run a shell with its own session busdbus-run-session -- bashStarts a new D-Bus session and runs bash inside it; the daemon terminates when the shell exits.
๐Ÿงช Isolate regression testsdbus-run-session -- make checkRuns tests in an isolated D-Bus session to avoid interfering with the real session.
๐Ÿ“„ Show helpdbus-run-session --helpPrints usage information and exits.
๐Ÿ”ข Show versiondbus-run-session --versionPrints the version of dbus-run-session and exits.

๐Ÿ“ SYNOPSIS

dbus-run-session [--config-file FILENAME] [--dbus-daemon BINARY] [--] PROGRAM [ARGUMENTS...]

dbus-run-session --help

dbus-run-session --version

๐Ÿ“– 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:

dbus-run-session -- bash

or to replace the login shell altogether, by combining dbus-run-session with the exec builtin:

exec dbus-run-session -- bash

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:

dbus-run-session -- make check

or (in automake(1)):

AM_TESTS_ENVIRONMENT = export MY_DEBUG=all;
LOG_COMPILER = dbus-run-session
AM_LOG_FLAGS = --

โš™๏ธ OPTIONS

๐Ÿšช Exit Status

dbus-run-session exits with the exit status of PROGRAM, 0 if the --help or --version options were used, 127 on an error within dbus-run-session itself, or 128+n if the PROGRAM was killed by signal n.

๐ŸŒ ENVIRONMENT

๐Ÿ› BUGS

Please send bug reports to the D-Bus mailing list or bug tracker, see http://www.freedesktop.org/software/dbus/

๐Ÿ“š SEE ALSO

dbus-daemon(1), dbus-launch(1)

dbus-run-session(1)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ OPTIONS ๐Ÿšช Exit Status ๐ŸŒ ENVIRONMENT ๐Ÿ› BUGS ๐Ÿ“š SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 09:56 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^