Refactor gnoe extension activation

This commit is contained in:
Manuel Thalmann 2023-01-23 16:15:19 +01:00
parent 38b9812d97
commit 2dc2e03b23

View file

@ -10,6 +10,7 @@ sudo install "$commandName" /usr/local/bin;
popd;
rm -rf "$contextRoot";
uuids=();
for id in 779 4907 1162
do
@ -20,13 +21,22 @@ do
gnome-shell-extension-installer "$id" --no-install;
sudo gnome-shell-extension-installer "$id" --yes;
unzip ./*.zip -d "$unzipLocation";
uuid="$(jq -r '.uuid' "$unzipLocation/metadata.json")";
uuids+=("$uuid");
sudo chmod -R +r "$extensionLocation/$uuid";
gnome-extensions enable "$uuid";
popd;
rm -rf "$contextRoot";
done
killall -SIGQUIT gnome-shell;
sleep 3;
for uuid in ${uuids[@]}
gnome-extensions enable "$uuid";
do
done
killall -SIGQUIT gnome-shell;