Update for Debian

This commit is contained in:
Ximi1970
2020-05-22 14:35:26 +02:00
parent b18e52839d
commit f55552c5cf

View File

@@ -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 <<EOF
[org/gnome/shell]
# List all extensions that you want to have enabled for all users
enabled-extensions=['appindicatorsupport@rgcjonas.gmail.com']
EOF
echo "[org/gnome/shell]" > $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