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