Parcourir la source

shell_i: Activate the finder integration on install #3463

This makes sure that users won't have to go into settings
to activate the extension. This might upset users by forcing
them to re-disable it on each oC upgrade, but if this becomes
an issue we should then make this configurable in the client's
settings itself.
Jocelyn Turcotte il y a 10 ans
Parent
commit
ed51358478
2 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 2 2
      admin/osx/macosx.pkgproj
  2. 5 0
      admin/osx/post_install.sh.cmake

+ 2 - 2
admin/osx/macosx.pkgproj

@@ -1021,11 +1021,11 @@
 				<key>CONCLUSION_ACTION</key>
 				<integer>0</integer>
 				<key>IDENTIFIER</key>
-				<string>com.owncCloud.finderPlugin</string>
+				<string>com.ownCloud.finderPlugin</string>
 				<key>LOCATION</key>
 				<integer>0</integer>
 				<key>NAME</key>
-				<string>Finder Plugin</string>
+				<string>Legacy Finder Plugin (OS X 10.9 or older)</string>
 				<key>OVERWRITE_PERMISSIONS</key>
 				<false/>
 				<key>VERSION</key>

+ 5 - 0
admin/osx/post_install.sh.cmake

@@ -8,4 +8,9 @@ tell application "Finder"
 end tell
 EOF
 
+# Always enable the new 10.10 finder plugin if available
+if [ -x "$(command -v pluginkit)" ]; then
+    pluginkit -e use -i com.owncloud.desktopclient.FinderSyncExt
+fi
+
 exit 0