diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2013-07-24 16:28:04 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-24 20:16:38 +0000 |
commit | bd242a8768b8e2f457af581c782ef8a9f2ba0be7 (patch) | |
tree | 7b5015e59d3021f1d6ac729d2f716efcf7640614 | |
parent | dda3686acde4911f70f07724247e822f8b3dbd90 (diff) |
fdo#67258 catch error when calling mdfind
This can be the case when spotlight is disabled. So just ignore any
error when trying to locate installed versions and let the user continue
with the manual selection instead of aborting.
Change-Id: I2c4e12652b8cb3b43af3ca6d8d553f0558f91858
Reviewed-on: https://gerrit.libreoffice.org/5069
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | setup_native/scripts/osx_install_languagepack.applescript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/setup_native/scripts/osx_install_languagepack.applescript b/setup_native/scripts/osx_install_languagepack.applescript index 3b164994b8a4..735f141b4087 100644 --- a/setup_native/scripts/osx_install_languagepack.applescript +++ b/setup_native/scripts/osx_install_languagepack.applescript @@ -63,7 +63,12 @@ if (button returned of result) is AbortLabel then return 2 end if -set the found_ooos_all to (do shell script "mdfind \"kMDItemContentType == 'com.apple.application-bundle' && kMDItemDisplayName == '[PRODUCTNAME]*' && kMDItemDisplayName != '[FULLAPPPRODUCTNAME].app'\"") & " +set found_ooos_all to "" +-- command might return an error if spotlight is disabled completely +try + set found_ooos_all to (do shell script "mdfind \"kMDItemContentType == 'com.apple.application-bundle' && kMDItemDisplayName == '[PRODUCTNAME]*' && kMDItemDisplayName != '[FULLAPPPRODUCTNAME].app'\"") +end try +set found_ooos_all to found_ooos_all & " " & chooseMyOwn set found_ooos_all_paragraphs to paragraphs in found_ooos_all |