mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-14 17:51:41 +03:00
6a9655aab6
The sleep is somehow needed, probably for pkg to rebuild its DB? The case fix fixes a warning but did not fix the issue itself.
21 lines
629 B
CMake
21 lines
629 B
CMake
#!/bin/sh
|
|
|
|
osascript << EOF
|
|
tell application "Finder"
|
|
activate
|
|
select the last Finder window
|
|
reveal POSIX file "/Applications/@APPLICATION_EXECUTABLE@.app"
|
|
end tell
|
|
EOF
|
|
|
|
# Always enable the new 10.10 finder plugin if available
|
|
if [ -x "$(command -v pluginkit)" ]; then
|
|
# 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/"
|
|
# Since El Capitan we need to sleep #4650
|
|
sleep 10s
|
|
# enable it
|
|
pluginkit -e use -i @APPLICATION_REV_DOMAIN@.FinderSyncExt
|
|
fi
|
|
|
|
exit 0
|