Do not select ownCloud in Finder after installation to fix #6781
authorDominik Schmidt <dev@dominik-schmidt.de>
Thu, 27 Sep 2018 18:08:48 +0000 (20:08 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:11 +0000 (10:58 +0100)
admin/osx/post_install.sh.cmake

index 0cbbee2ffddad0a2e40c5799bc70f846322237d7..55d5e1c1d0e20ce0eeb8b648d6de9dbadb12787a 100644 (file)
@@ -1,17 +1,5 @@
 #!/bin/sh
 
-# Check if Finder is running (for systems with Finder disabled)
-finder_status=`ps aux | grep "/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder" | grep -v "grep"`
-if ! [ "$finder_status" == "" ] ; then # Finder is running
-   osascript << EOF
-tell application "Finder"
-   activate
-   select the last Finder window
-       reveal POSIX file "/Applications/@APPLICATION_EXECUTABLE@.app"
-end tell
-EOF
-fi
-
 # 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