Terminate autolaunched X11 session bus when no longer needed
Submitted by swo..@..ol.com
Assigned to D-Bus Maintainers
Just a little notice before: I'm using dbus 1.6.10 but the bugtracker doesn't provide a selection for version 1.6. Now to the issue:
I'm using Ubuntu and I'm noticing that due to dbus some dbus-related-processes are spawned if I'm opening a major process (for example a text editor with root permissions). There are 2 types:
dbus itself: On opening the application with root permissions dbus starts 2 major processes for root which hasn't existed before for him: dbus-launch and dbus-daemon.
External applications that are defined in service files: I'm very often seeing that a major process is triggering the spawning of processes defined in these service files.
Now to the problem and my feature request: If I'm closing all major processes the user-dependend dbus-processes from #1 and the external processes from #2 will still remain. Over time this will bloat up my system with processes that could be safely closed. dbus should track this and if all related major processes are closed dbus should remove the processes from #1 and #2. To prevent in this case a lot of forking there could be maybe an idle timeout (which would be ideally configurable).