Having trouble finding a word in multiple files

Karl Auer kauer at biplane.com.au
Sun Jun 14 23:53:39 UTC 2020


On Sun, 2020-06-14 at 17:09 -0400, Robert Heller wrote:
>  soffice --headless --convert-to odt *.docx
> *Warning*: The "--headless" option to LibreOffice is misleading.  It
> *still* needs an xserver, even with the --headless option.  The above
> command will fail if run in a truely non-X11 environment (ev as a
> cron job, batch job, etc.).

I was surprised by your statement and have just tested it. The above
command works fine:
- in a terminal in an X window manager
- in a console (no X, but with X installed)
- in a batch job run from a terminal in an X window manager
- in a batch job run from a console (no X, but X installed)
- from a cron job (no X, but X installed)

So I don't think it needs an X server, but it does need X libraries.
I.e., soffice needs X installed to work, which is probably true, since
it is an X application. I would expect that you could not install
soffice without dragging in parts of X as dependencies.

Regards, K.



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D






More information about the ubuntu-users mailing list