Skip to content

Instantly share code, notes, and snippets.

@dive
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dive/dbf78ea39f9b9f67b603 to your computer and use it in GitHub Desktop.
Save dive/dbf78ea39f9b9f67b603 to your computer and use it in GitHub Desktop.
Quick fix for Google Drive icon for dark menu bar (OS X 10.10)
#!/bin/sh
GOOGLE_DRIVE_DEFAULT_PATH=/Applications/Google\ Drive.app/Contents/Resources
# backup
find "$GOOGLE_DRIVE_DEFAULT_PATH"/ -type f -name 'mac-normal*.png' -exec cp -v '{}' '{}'.backup \;
# copy all needed files to tmp
cp -f -v "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal*.png /tmp/
# rename and put them back
cp -f -v /tmp/mac-normal.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal-inverse.png
cp -f -v /tmp/mac-normal@2x.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal-inverse@2x.png
cp -f -v /tmp/mac-normal-inverse.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal.png
cp -f -v /tmp/mac-normal-inverse@2x.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal@2x.png
echo '==============================='
echo 'You should restart Google Drive'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment