Refactor gnoe extension activation
This commit is contained in:
parent
38b9812d97
commit
2dc2e03b23
1 changed files with 11 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue