master
Robert Zenz 2013-08-18 16:30:31 +02:00
parent 6a6ca2669d
commit 69816855ff
1 changed files with 26 additions and 0 deletions

26
Mate/restoreThumbnailBorder.sh Executable file
View File

@ -0,0 +1,26 @@
#!/usr/bin/env sh
# Check if I'm root
if [ $(id -u) -ne 0 ]; then
echo "This script should be run as root."
exit 1
fi
# Define our target
target=/usr/share/pixmaps/caja/thumbnail_frame.png
# Create a temporary file to work with
oldFrame=$(mktemp)
# Download the old frame from GitHub
wget --output-document "$oldFrame" "https://raw.github.com/mate-desktop/mate-file-manager/0e004c696b0e68b2cff37a4c3315b022a35eaf43/icons/thumbnail_frame.png"
# Copy the image
cp -fv "$oldFrame" "$target"
# Make sure the rights are correct
chown root:root "$target"
chmod 644 "$target"
echo "Don't forget to restart Caja!"