https://bugs.documentfoundation.org/show_bug.cgi?id=147280

            Bug ID: 147280
           Summary: lang pack installed cannot find base installation of
                    libreoffice on macos
           Product: LibreOffice
           Version: 7.0 all versions
          Hardware: All
                OS: macOS (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When installing language pack on a system which has main libreoffice already
installed and spotlight is DISABLED from beginning the installer reports that
it is unable to find main installation directory and wants me to point to it
manually. When I do that it says that this directory is not correct libreoffice
installation dir. (I have all these messages in polish).

The reason for that is that libreoffice installed relies on spotlight working.
Spotlight is causing my macbook pro to be hot as hell, so the first thing I do
is to disable it.

Now installer uses internally mdfind which uses spotlight database.

Obviously that ends up with disaster.

md* won't be able to find anything new that is not already indexed by
spotlight.


arekm@amb ~ % mdutil -s /Applications/
/System/Volumes/Data/Applications:
        Indexing disabled.

And indeed:

arekm@amb ~ % mdfind "kMDItemContentType =='com.apple.application-bundle' &&
kMDItemDisplayName == 'LibreOffice.app'"
arekm@amb ~ % mdls /Applications/LibreOffice.app
kMDItemFSContentChangeDate = 2021-08-16 23:51:29 +0000
kMDItemFSCreationDate      = 2021-08-16 23:51:29 +0000
kMDItemFSCreatorCode       = ""
kMDItemFSFinderFlags       = 0
kMDItemFSHasCustomIcon     = 0
kMDItemFSInvisible         = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery      = 0
kMDItemFSLabel             = 0
kMDItemFSName              = "LibreOffice.app"
kMDItemFSNodeCount         = 1
kMDItemFSOwnerGroupID      = 80
kMDItemFSOwnerUserID       = 501
kMDItemFSSize              = 1
kMDItemFSTypeCode          = ""


Why not iterate over /Applications/*.app (or just check
/Applications/LibreOffice*.app), check interesting parts + still do mdfind
solution, so there are more changes to get this working?


That would work for both group of people, those with spotlight enabled and also
disabled.


Tested on 7.3.0.3 and macos 12.2.

Steps to Reproduce:
1. disable spotlight and wipe out its database (don't have procedure for that -
mine spotlight was disabled from beginning; sudo mdutil -E / probably)
2. install libreoffice main 7.0 (had en-US version)
3. try to install lang pack for any language (pl-PL in my case)

Actual Results:
lang pack installer not finding installation dir and manually pointed directory
is not recognized as valid

Expected Results:
It should:
- automatically find correct dir
- properly recognize manually pointed dir as libreoffice installation


Reproducible: Always


User Profile Reset: No



Additional Info:
Don't rely on md* utils ONLY. These REQUIRE spotlight working and properly
indexed. Just use plain and reliable iteration over directory etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to