summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/09-torsocks-apps
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-11-09 10:44:40 +0000
committerintrigeri <intrigeri@boum.org>2015-11-09 10:47:12 +0000
commit7a536e699cc26dc1451a69cf8e477b5a1a48779b (patch)
treec614bfe431d8114d6677bf41a226813a8d455e2a /config/chroot_local-hooks/09-torsocks-apps
parent44545b2e962fa6e3b659b86c13890e7c1870cc05 (diff)
Also wrap Seahorse with torsocks when it is started as a D-Bus service.
It's started this way e.g. with "Password and keys" from the Activities Overview and applications menu. Closes: #9792
Diffstat (limited to 'config/chroot_local-hooks/09-torsocks-apps')
-rwxr-xr-xconfig/chroot_local-hooks/09-torsocks-apps6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/09-torsocks-apps b/config/chroot_local-hooks/09-torsocks-apps
index 259e5e6..fa36b4c 100755
--- a/config/chroot_local-hooks/09-torsocks-apps
+++ b/config/chroot_local-hooks/09-torsocks-apps
@@ -5,8 +5,14 @@ set -e
echo "Wrapping some applications with torsocks"
APPS="gobby-0.5 liferea seahorse"
+DBUS_SERVICES="org.gnome.seahorse.Application"
for app in $APPS; do
sed -i'' --regexp-extended 's,Exec=(.*),Exec=torsocks \1,' \
"/usr/share/applications/${app}.desktop"
done
+
+for dbus_service in $DBUS_SERVICES; do
+ sed -i'' --regexp-extended 's,Exec=(.*),Exec=torsocks \1,' \
+ "/usr/share/dbus-1/services/${dbus_service}.service"
+done