summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/45-disable-unneeded-dbus-services
blob: c9b5c9431d44996097c64a428f2563555f33e2a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

echo "Disabling unneeded D-Bus services"

SERVICES_DIR=/usr/share/dbus-1/services

[ -d "${SERVICES_DIR}" ] || exit 11

sed -i'' 's,^Exec=.*$,Exec=/bin/false,' \
    "${SERVICES_DIR}"/org.gnome.evolution.dataserver.*.service \
    "${SERVICES_DIR}"/org.gnome.Shell.CalendarServer.service   \
    "${SERVICES_DIR}"/org.freedesktop.Telepathy.AccountManager.service \
    "${SERVICES_DIR}"/org.freedesktop.Telepathy.MissionControl5.service