Add papirus-folders support to installation scripts

This commit is contained in:
Sergei Eremenko 2017-11-07 14:13:41 +02:00
parent 68fc3d4be3
commit 4f4af6d656
3 changed files with 17 additions and 0 deletions

View file

@ -50,6 +50,12 @@ cp -R \
"$temp_dir/$gh_repo-master/Papirus-Adapta-Nokto" \
"$temp_dir/$gh_repo-master/Papirus-Dark" \
"$temp_dir/$gh_repo-master/Papirus-Light" ~/.icons/
# Try to restore the color of folders from a config
if which papirus-folders > /dev/null 2>&1; then
papirus-folders -R || true
fi
gtk-update-icon-cache -q ~/.icons/ePapirus || true
gtk-update-icon-cache -q ~/.icons/Papirus || true
gtk-update-icon-cache -q ~/.icons/Papirus-Adapta || true

View file

@ -51,6 +51,11 @@ cp -R \
"$temp_dir/$gh_repo-master/Papirus-Dark" \
"$temp_dir/$gh_repo-master/Papirus-Light" ~/.local/share/icons/
# Try to restore the color of folders from a config
if which papirus-folders > /dev/null 2>&1; then
papirus-folders -R || true
fi
echo "=> Clearing cache ..."
rm -f ~/.cache/icon-cache.kcache
rm -rf "/tmp/$gh_repo.tar.gz" "$temp_dir"

View file

@ -57,6 +57,12 @@ sudo cp -R \
"$temp_dir/$gh_repo-master/Papirus-Adapta-Nokto" \
"$temp_dir/$gh_repo-master/Papirus-Dark" \
"$temp_dir/$gh_repo-master/Papirus-Light" $data_dir/share/icons/
# Try to restore the color of folders from a config
if which papirus-folders > /dev/null 2>&1; then
sudo papirus-folders -R || true
fi
sudo gtk-update-icon-cache -q "$data_dir/share/icons/ePapirus" || true
sudo gtk-update-icon-cache -q "$data_dir/share/icons/Papirus" || true
sudo gtk-update-icon-cache -q "$data_dir/share/icons/Papirus-Adapta" || true