mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-05-07 10:15:27 +02:00
Fix typos
This commit is contained in:
92
dist/arch/gnome/PKGBUILD
vendored
92
dist/arch/gnome/PKGBUILD
vendored
@@ -20,7 +20,6 @@ makedepends=(
|
||||
'zip'
|
||||
'libx11'
|
||||
'qt5-base'
|
||||
'notifications'
|
||||
)
|
||||
provides=(
|
||||
'systray-x'
|
||||
@@ -58,81 +57,58 @@ package() {
|
||||
}
|
||||
|
||||
post_install() {
|
||||
PROF_DIR=/etc/dconf/profile
|
||||
PROF_FILE=user
|
||||
PROF_DIR="/etc/dconf/profile"
|
||||
PROF_FILE="user"
|
||||
|
||||
if [ -f $PROF_DIR/$PROF_FILE ] ; then
|
||||
if [ -f ${PROF_DIR}/${PROF_FILE} ] ; then
|
||||
#
|
||||
# Edit user file
|
||||
#
|
||||
grep -q "user-db:user" $PROF_DIR/$PROF_FILE
|
||||
grep -q "user-db:user" ${PROF_DIR}/${PROF_FILE}
|
||||
if [ "$?" = "1" ] ; then
|
||||
echo "user-db:user" >> $PROF_DIR/$PROF_FILE
|
||||
echo "user-db:user" >> ${PROF_DIR}/${PROF_FILE}
|
||||
fi
|
||||
|
||||
grep -q "system-db:local" $PROF_DIR/$PROF_FILE
|
||||
|
||||
grep -q "system-db:local" ${PROF_DIR}/${PROF_FILE}
|
||||
if [ "$?" = "1" ] ; then
|
||||
echo "system-db:local" >> $PROF_DIR/$PROF_FILE
|
||||
echo "system-db:local" >> ${PROF_DIR}/${PROF_FILE}
|
||||
fi
|
||||
else
|
||||
#
|
||||
# Generate user file
|
||||
#
|
||||
mkdir -p $PROF_DIR
|
||||
cat >$PROF_DIR/$PROF_FILE <<EOF
|
||||
mkdir -p ${PROF_DIR}
|
||||
cat >${PROF_DIR}/${PROF_FILE} <<EOF
|
||||
user-db:user
|
||||
system-db:local
|
||||
EOF
|
||||
fi
|
||||
|
||||
fi
|
||||
EXTENSION="appindicatorsupport@rgcjonas.gmail.com"
|
||||
CONF_DIR="/etc/dconf/db/local.d"
|
||||
CONF_FILE="00-extensions"
|
||||
|
||||
DEB_VENDOR=$(cat /etc/dpkg/origins/default | grep Vendor: | sed -e "s/Vendor: //")
|
||||
case $DEB_VENDOR in
|
||||
Debian)
|
||||
EXTENSION="ubuntu-appindicators@ubuntu.com"
|
||||
;;
|
||||
|
||||
Ubuntu)
|
||||
RELEASE=$(lsb_release -rs)
|
||||
case $RELEASE in
|
||||
16.04)
|
||||
EXTENSION="appindicatorsupport@rgcjonas.gmail.com"
|
||||
;;
|
||||
|
||||
*)
|
||||
EXTENSION="ubuntu-appindicators@ubuntu.com"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
*)
|
||||
EXTENSION="ubuntu-appindicators@ubuntu.com"
|
||||
;;
|
||||
esac
|
||||
|
||||
CONF_DIR=/etc/dconf/db/local.d
|
||||
CONF_FILE=00-extensions
|
||||
|
||||
if [ -f $CONF_DIR/$CONF_FILE ] ; then
|
||||
#
|
||||
# Edit extensions file
|
||||
#
|
||||
grep -q $EXTENSION $CONF_DIR/$CONF_FILE
|
||||
if [ "$?" = "1" ] ; then
|
||||
sed -i -e "s/\(enabled-extensions=\[.*\)\]/\1, '${EXTENSION}'\]/" $CONF_DIR/$CONF_FILE
|
||||
fi
|
||||
if [ -f ${CONF_DIR}/${CONF_FILE} ] ; then
|
||||
#
|
||||
# Edit extensions file
|
||||
#
|
||||
grep -q ${EXTENSION} ${CONF_DIR}/${CONF_FILE}
|
||||
if [ "$?" == "1" ] ; then
|
||||
sed -i -e "s/\(enabled-extensions=\[.*\)\]/\1, '${EXTENSION}'\]/" ${CONF_DIR}/${CONF_FILE}
|
||||
fi
|
||||
else
|
||||
#
|
||||
# Generate extensions file
|
||||
#
|
||||
mkdir -p $CONF_DIR
|
||||
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
|
||||
#
|
||||
# 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
|
||||
fi
|
||||
|
||||
which dconf > /dev/null 2>&1
|
||||
if [ "$?" = "0" ] ; then
|
||||
dconf update
|
||||
#
|
||||
if [ -x /usr/bin/dconf ] ; then
|
||||
dconf update
|
||||
fi
|
||||
}
|
||||
|
||||
4
dist/arch/minimal/PKGBUILD
vendored
4
dist/arch/minimal/PKGBUILD
vendored
@@ -11,14 +11,14 @@ license=(MPL-2.0)
|
||||
depends=(
|
||||
'qt5-base'
|
||||
'thunderbird>=68'
|
||||
'hunderbird<=84'
|
||||
'thunderbird<=84'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'unzip'
|
||||
'zip'
|
||||
'libx11'
|
||||
't5-base'
|
||||
'qt5-base'
|
||||
)
|
||||
provides=(
|
||||
'systray-x'
|
||||
|
||||
Reference in New Issue
Block a user