mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-18 09:10:34 -04:00
Add papirus-folders support to installation scripts
This commit is contained in:
parent
68fc3d4be3
commit
4f4af6d656
3 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue