Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching UNO in Windows registry currently doesn't work #8

Open
xbubli opened this issue Jun 21, 2016 · 0 comments
Open

Searching UNO in Windows registry currently doesn't work #8

xbubli opened this issue Jun 21, 2016 · 0 comments

Comments

@xbubli
Copy link
Collaborator

xbubli commented Jun 21, 2016

Now that noa-libre comes with OfficeLoader that will try to find UNO on the system in the following places & following order:

  1. noa configuration ( IOfficeApplication. APPLICATION_HOME_KEY )
  2. com.sun.star.lib.loader.unopath Java property
  3. UNO_PATH environment variable
    4a. (Windows only) Registry key Software\LibreOffice\UNO\InstallPath
    4b. (Linux/Mac) PATH env.variable
  4. (Linux/Mac) 'which soffice'

the point 4a isn't quite implemented in new code yet. FIXME is planted in WinRegKey.java class in the following commit: 0f71008

Since registry.jar is shipped w/ noa-libre and already used in noa-libre code, we should use it to read Win registry and find UNO install path also in InstallationFinder/WinRegKey classes. Relying on unowinreg.dll won't work in most of the installations, as one needs to have LibO SDK installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant