From a985ea8624d398c3ecb1f1da4ab996bfcc6f35c5 Mon Sep 17 00:00:00 2001
From: Dominik Schmidt <dev@dominik-schmidt.de>
Date: Thu, 27 Sep 2018 20:08:48 +0200
Subject: [PATCH] Do not select ownCloud in Finder after installation to fix
 #6781

---
 admin/osx/post_install.sh.cmake | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/admin/osx/post_install.sh.cmake b/admin/osx/post_install.sh.cmake
index 0cbbee2ff..55d5e1c1d 100644
--- a/admin/osx/post_install.sh.cmake
+++ b/admin/osx/post_install.sh.cmake
@@ -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