LibreOffice

From NixOS Wiki
Jump to: navigation, search

LibreOffice is a multi-platform Word-processor.

Spellcheck

In order for spellcheck to work, you will need to install the hunspell package as well as the hunspellDicts. packages for the languages that you would like. For example this installs libreoffice with dictionaries for Ukrainian and Central Thai.

  environment.systemPackages = with pkgs; [
    libreoffice-qt
    hunspell
    hunspellDicts.uk_UA
    hunspellDicts.th_TH
  ];

Variants

There are several packages with the name "libreoffice". These variants are combinations of

  • still vs. fresh: still could also be called stable, fresh includes more new features and bugs (see libreoffice forum)
  • qt vs. qt6 vs. none: If you use KDE (Plasma) then you'll be better off with libreoffice-qt package. Otherwise you may lack, e.g. main menu bar. [1]
  • unwrapped vs. none; bin vs none: same as general Package naming conventions

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 = pkgs.libreoffice-fresh-unwrapped;
in {
  environment.sessionVariables = {
    PYTHONPATH = "${office}/lib/libreoffice/program";
    URE_BOOTSTRAP = "vnd.sun.star.pathname:${office}/lib/libreoffice/program/fundamentalrc";
  };
}


See also

  • Onlyoffice, software suite that offers online and offline tools for document editing, collaboration, and management.
  1. What is the difference between qt and qt6?