diff --git a/dist/deb/gnome/debian.postinst b/dist/deb/gnome/debian.postinst index 47d5f00..63d1a99 100644 --- a/dist/deb/gnome/debian.postinst +++ b/dist/deb/gnome/debian.postinst @@ -7,10 +7,6 @@ #db_get packagename/question1 #ANSWER1=$RET -#DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //") -#if [ "$DEB_VENDOR" = "Debian" ] ; then -#fi - PROF_DIR=/etc/dconf/profile PROF_FILE=user @@ -22,7 +18,7 @@ if [ -f $PROF_DIR/$PROF_FILE ] ; then if [ "$?" = "1" ] ; then echo "user-db:user" >> $PROF_DIR/$PROF_FILE fi - + grep -q "system-db:local" $PROF_DIR/$PROF_FILE if [ "$?" = "1" ] ; then echo "system-db:local" >> $PROF_DIR/$PROF_FILE @@ -39,7 +35,14 @@ EOF fi -EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + +DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //") +if [ "$DEB_VENDOR" = "Debian" ] ; then + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" +else + EXTENSION="ubuntu-appindicators@ubuntu.com" +fi + CONF_DIR=/etc/dconf/db/local.d CONF_FILE=00-extensions @@ -56,12 +59,9 @@ else # Generate extensions file # mkdir -p $CONF_DIR - cat >$CONF_DIR/$CONF_FILE < $CONF_DIR/$CONF_FILE + echo "# List all extensions that you want to have enabled for all users" >> $CONF_DIR/$CONF_FILE + echo "enabled-extensions=['${EXTENSION}']" >> $CONF_DIR/$CONF_FILE fi which dconf > /dev/null 2>&1