Only run dbus-proxy services when they are needed
Currently, when Tails is started, 7 systemd services which run xdg-dbus-proxy
are automatically started (tails-a11y-proxy-netns@.service
and tails-ibus-proxy-netns@.service
). Those need 7.7 MiB of RAM each, which sums up to over 50 MiB. To reduce memory consumption, we should only run those when the application which needs them is actually running.
Looking at the service definitions, it seems like it was already intended to stop those services when they are not needed, because StopWhenUnneeded=true
is set. However, that's not working as intended because we also set WantedBy=desktop.target
in the Install
section, which defines a dependency on the desktop.target
so the services keep running as long as the desktop.target
is active.