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#