Install Compton if needed

This commit is contained in:
Simon Long 2019-04-24 13:49:33 +01:00
parent 81ad7689fe
commit 0038aaeb18

View File

@ -1333,6 +1333,9 @@ do_compton() {
ASK_TO_REBOOT=1 ASK_TO_REBOOT=1
fi fi
if [ $RET -eq 0 ]; then if [ $RET -eq 0 ]; then
if [ ! -e /usr/bin/compton ] ; then
apt-get -y install compton
fi
cat << EOF > /etc/xdg/autostart/compton.desktop cat << EOF > /etc/xdg/autostart/compton.desktop
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application