RFC: Implement dbus-broker-session tool #380
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a functional replacement for dbus-run-session, as this is often a very useful tool for testing / isolation (#145)
Exit codes and behavior is very similar,
the implementation is mostly shared with dbus-broker-launch, adding some hooks to start and supervise the application.
The target is to provide a minimal implementation, which can be enabled by creating a symlink named
dbus-broker-session
todbus-broker-launch
. Possibly this could be extended to also allow a symlink namesdbus-run-session
.More complex functionality like supporting dbus-daemon or different
dbus-broker-launch
versions is not planned (like in #321), but could be done with simple shell scripts.I believe this to be the best approach, and if merged it will quickly be available in distributions.
Please give me some feedback if this is worth pursuing (more than a version that "works-for-me"). I know it needs another pass in regards of code-style atleast, so general stuff would be needed to be sorted out first.
help
/help_session
or common functions with flag likeparse_argv
posix_spawn
orfork/exec
sd_event
+ theerror_fold
stuffgetauxval
because its used already in dbus-broker. but I would prefergetrandom
.?RUNTIME_DIRECTORY
,XDG_RUNTIME_DIR
first.