LibreOffice

From NixOS Wiki
Revision as of 07:53, 20 September 2021 by imported>Nix (Nix moved page Libreoffice to LibreOffice: match official casing)

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";
  };
}