diff --git a/install-papirus-home-gtk.sh b/install-papirus-home-gtk.sh index 64f7484a69..2ddc0368c4 100755 --- a/install-papirus-home-gtk.sh +++ b/install-papirus-home-gtk.sh @@ -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 diff --git a/install-papirus-home-kde.sh b/install-papirus-home-kde.sh index 0a011f1d1d..b19fd05685 100755 --- a/install-papirus-home-kde.sh +++ b/install-papirus-home-kde.sh @@ -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" diff --git a/install-papirus-root.sh b/install-papirus-root.sh index 281de0899d..ea2445c425 100755 --- a/install-papirus-root.sh +++ b/install-papirus-root.sh @@ -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