[Libreoffice-commits] core.git: setup_native/scripts

Christian Lohmaier (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 16 14:46:29 UTC 2020


 setup_native/scripts/osx_install_languagepack.applescript |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 20c17b0ffb89102d086f80303887a8594f0c3c8c
Author:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
AuthorDate: Tue Jun 16 11:40:16 2020 +0200
Commit:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Tue Jun 16 16:45:53 2020 +0200

    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 at googlemail.com>

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
 	


More information about the Libreoffice-commits mailing list