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

New commits:
commit 7c656ecff61608241955e37b6e7e165ac642105c
Author:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
AuthorDate: Tue Jun 16 11:40:16 2020 +0200
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Tue Jun 16 22:15:52 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+libreoff...@googlemail.com>
    (cherry picked from commit 20c17b0ffb89102d086f80303887a8594f0c3c8c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96425

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
        
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to