From 2f5d899da36d10b71606a5ff640ca55ccf4905cf Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Fri, 22 May 2020 16:04:27 +0200 Subject: [PATCH] Update for Ubuntu --- dist/deb/gnome/debian.postinst | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/dist/deb/gnome/debian.postinst b/dist/deb/gnome/debian.postinst index d4312ac..01bba2c 100644 --- a/dist/deb/gnome/debian.postinst +++ b/dist/deb/gnome/debian.postinst @@ -35,13 +35,28 @@ EOF fi - DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //") -if [ "$DEB_VENDOR" = "Debian" ] ; then - EXTENSION="ubuntu-appindicators@ubuntu.com" -else - EXTENSION="appindicatorsupport@rgcjonas.gmail.com" -fi +case $DEB_VENDOR in + Debian) + EXTENSION="ubuntu-appindicators@ubuntu.com" + ;; + + Ubuntu) + RELEASE=$(lsb_release -rs) + case $RELEASE in + 16.04|18.04|19.04|19.10) + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + ;; + + *) + EXTENSION="ubuntu-appindicators@ubuntu.com" + ;; + esac + + *) + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + ;; +esac CONF_DIR=/etc/dconf/db/local.d CONF_FILE=00-extensions