post_install.sh.cmake 463 B

12345678910111213
  1. #!/bin/sh
  2. # Always enable the new 10.10 finder plugin if available
  3. if [ -x "$(command -v pluginkit)" ]; then
  4. # add it to DB. This happens automatically too but we try to push it a bit harder for issue #3463
  5. pluginkit -a "/Applications/@APPLICATION_EXECUTABLE@.app/Contents/PlugIns/FinderSyncExt.appex/"
  6. # Since El Capitan we need to sleep #4650
  7. sleep 10s
  8. # enable it
  9. pluginkit -e use -i @APPLICATION_REV_DOMAIN@.FinderSyncExt
  10. fi
  11. exit 0