Handle extension name being different on RHEL/CentOS

This commit is contained in:
Anthony Rose 2021-11-23 08:53:49 +00:00
parent 8d95c9c6dd
commit 63e60a45a4

View file

@ -54,7 +54,13 @@ set_gnome_extensions () {
# gnome-extensions not installed.
return
fi
for ext in dash-to-dock@micxgx.gmail.com appindicatorsupport@rgcjonas.gmail.com
if [ $(. /etc/os-release && echo ${ID_LIKE:-none}) == "*rhel*" ]
then
dashtodock=dash-to-dock@gnome-shell-extensions.gcampax.github.com
else
dashtodock=dash-to-dock@micxgx.gmail.com
fi
for ext in $dashtodock appindicatorsupport@rgcjonas.gmail.com
do
$gnomeextcmd enable -q $ext
done