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;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue