Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix Google Photos Backup icons on Mac OS X Yosemite dark menu bar
#!/bin/bash
# REQUIREMENTS:
# brew install imagemagick
#
function switch_files {
mv $1.png $1-original.png
convert -negate $1-original.png $1.png
}
RUNNING=`ps aux | grep '/Google Photos Backup' | grep -v grep | wc -l | bc`
if [ "$RUNNING" = "1" ]; then
killall 'Google Photos Backup'
while [ "$RUNNING" = "1" ]; do
sleep 1
RUNNING=`ps aux | grep '/Google Photos Backup' | grep -v grep | wc -l | bc`
done
fi
sleep 3
cd '/Applications/Google Photos Backup.app/Contents/Resources/'
FILES=`ls Uploader_*`
for FILE in $FILES
do
switch_files $(basename $FILE .png)
done
open '/Applications/Google Photos Backup.app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment