deb: remove autostart file on uninstall

Closes #916
This commit is contained in:
Gustavo Iñiguez Goia 2023-04-22 23:38:36 +02:00
parent a1948e259a
commit cbdb00b620
Failed to generate hash of commit

View file

@ -13,6 +13,11 @@ purge_files()
rm -rf $path/opensnitch/
fi
done
deskfile=/etc/xdg/autostart/opensnitch_ui.desktop
if [ -h $deskfile -o -f $deskfile ]; then
rm -f $deskfile
fi
}
pkill -15 opensnitch-ui || true
@ -21,4 +26,7 @@ case "$1" in
purge)
purge_files
;;
remove)
purge_files
;;
esac