summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-06-16 11:40:16 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-06-16 16:45:53 +0200
commit20c17b0ffb89102d086f80303887a8594f0c3c8c (patch)
tree5dded5793eca5a419d016d8349fa84cb050ce9d4 /setup_native
parent058c21ac4a552ee6f6ca2f67c0d134a819228d53 (diff)
macOS fix langpack installer with manually selected .app directory
For cases when there are multiple matching apps where the Languagepack might be installed to, the "make sure to launch LO once before installing the langpack" mechanism can fail. Even if it is the call "tell application <selection> to activate" that fails, the error handler assumes that the untar operation didn't work and suggests to retry with admin privileges, modifying the .app bundle before having it started once (AKA verified by gatekeeper), breaking the app. Passing the full path to the application object should fix that. Change-Id: I47d61ad68e225fbdba191702ba85598164602e81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96449 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/scripts/osx_install_languagepack.applescript7
1 files changed, 4 insertions, 3 deletions
diff --git a/setup_native/scripts/osx_install_languagepack.applescript b/setup_native/scripts/osx_install_languagepack.applescript
index 107029421d1d..8ad55396766a 100644
--- a/setup_native/scripts/osx_install_languagepack.applescript
+++ b/setup_native/scripts/osx_install_languagepack.applescript
@@ -146,10 +146,11 @@ try
(* A start of unchanged LO must take place so Gatekeeper will verify
the signature prior to installing the languagepack
*)
- if application choice is not running then
+ set apppath to POSIX path of choice
+ if application apppath is not running then
-- this will flash the startcenter once...
- tell application choice to activate
- tell application choice to quit
+ tell application apppath to activate
+ tell application apppath to quit
end if
do shell script tarCommand