LibreOffice

From NixOS Wiki
Revision as of 14:34, 26 July 2021 by imported>Makefu (Created page with "LibreOffice is a multi-platform Word-processor. == uno Python Library == For getting <code>uno.py</code> python library to work the special path <code>/lib/libreoffice/progra...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LibreOffice is a multi-platform Word-processor.

uno Python Library

For getting uno.py python library to work the special path /lib/libreoffice/program needs to be included into the python path as well as the URE_BOOTSTRAP variable must be set.

let
  office = libreoffice-fresh-unwrapped;
in {
  environment.sessionVariables = {
    PYTHONPATH = "${office}/lib/libreoffice/program";
    URE_BOOTSTRAP = "vnd.sun.star.pathname:${office}/lib/libreoffice/program/fundamentalrc";
  };
}