2015-07-13 11:51:05 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-07-28 18:57:55 +03:00
|
|
|
# Always enable the new 10.10 finder plugin if available
|
|
|
|
if [ -x "$(command -v pluginkit)" ]; then
|
2015-08-05 16:10:00 +03:00
|
|
|
# add it to DB. This happens automatically too but we try to push it a bit harder for issue #3463
|
|
|
|
pluginkit -a "/Applications/@APPLICATION_EXECUTABLE@.app/Contents/PlugIns/FinderSyncExt.appex/"
|
2016-04-15 17:56:54 +03:00
|
|
|
# Since El Capitan we need to sleep #4650
|
|
|
|
sleep 10s
|
2015-08-05 16:10:00 +03:00
|
|
|
# enable it
|
2015-07-31 16:13:14 +03:00
|
|
|
pluginkit -e use -i @APPLICATION_REV_DOMAIN@.FinderSyncExt
|
2015-07-28 18:57:55 +03:00
|
|
|
fi
|
|
|
|
|
2016-04-15 17:56:54 +03:00
|
|
|
exit 0
|