Having trouble finding a word in multiple files

Robert Heller heller at deepsoft.com
Mon Jun 15 02:07:48 UTC 2020


At Mon, 15 Jun 2020 09:53:39 +1000 kauer at biplane.com.au, "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> 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.

OK, so the LibreOffice devs. fixed the "bug" (that they claimed was not a bug)
I discovered. With the version I have installed on my CentOS 6 box, (4.3.7.2),
libreoffice crashes, even with --headless in a truely headless environment. I
filed a bug report, but was told it was not a bug.

Running on my system:

sauron.deepsoft.com% oowriter --headless --convert-to pdf /extra/Colonial-WendellAggregationAgreement2016-1.docx
/usr/lib64/libreoffice/program/soffice.bin X11 error: Can't open display: 
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)
sauron.deepsoft.com% rpm -qf `which oowriter`
libreoffice-writer-4.3.7.2-2.el6_9.2.x86_64

*I* don't use oowriter for anything other than --convert-to pdf (*sometimes* 
--convert-to html).  I never have any reason to actually open files with 
oowriter.

> 
> Regards, K.
> 
> 
> 

-- 
Robert Heller             -- 978-544-6933 Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                    




More information about the ubuntu-users mailing list