From 4a26b212cb0c9798f6daf5eb7d390a6be082ded5 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Thu, 21 Jan 2016 23:58:17 +0000 Subject: [PATCH] Enable extension for 'user' only --- debian/fw-daemon-gnome.postinst | 3 +-- debian/fw-daemon-gnome.prerm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/fw-daemon-gnome.postinst b/debian/fw-daemon-gnome.postinst index 10769b0..a2083a7 100644 --- a/debian/fw-daemon-gnome.postinst +++ b/debian/fw-daemon-gnome.postinst @@ -4,8 +4,7 @@ set -e case $1 in configure) - pkill -HUP gnome-shell - gnome-shell-extension-tool --enable-extension=firewall@subgraph.com + su user -c gnome-extension-tool --enable-extension=firewall@subgraph.com ;; abort-upgrade|abort-remove|abort-deconfigure) ;; diff --git a/debian/fw-daemon-gnome.prerm b/debian/fw-daemon-gnome.prerm index 358ffeb..d11aa4a 100644 --- a/debian/fw-daemon-gnome.prerm +++ b/debian/fw-daemon-gnome.prerm @@ -3,7 +3,7 @@ set -e if [ "$1" = "remove" ]; then - gnome-shell-extension-tool --disable-extension=firewall@subgraph.com + su user -c gnome-shell-extension-tool --disable-extension=firewall@subgraph.com fi #DEBHELPER#