Bug 71064

Summary: "Failed to open display" error in the help message when using LO via SSH
Product: LibreOffice Reporter: Andrew Leung <andrewleung>
Component: LibreofficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: barta, qubit
Version: 4.1.3.2 release   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Andrew Leung 2013-10-30 20:40:49 UTC
When executing LibreOffice via SSH with the -h option, the first line shows an error message: Failed to open display. This error message was not previously present in LibreOffice 4.0.3, because it did not require a display at all.

The -h option displays a help message and exits, so shouldn't --headless be implied?
Comment 1 tommy27 2014-01-19 09:18:58 UTC
please specify your exact O/S version and tell us if issue is still there with LibO 4.1.4.2
Comment 2 Andrew Leung 2014-01-20 23:37:52 UTC
I'm running RHEL Server release 6.3 (Linux version 2.6.32-279.11.1.el6.x86_64).

Yes, the issue is still present after upgrading to 4.1.4.2. Here's the output:

[root@server ~]# libreoffice -h
Failed to open display
LibreOffice 4.1.4.2 0a0440ccc0227ad9829de5f46be37cfb6edcf72

Usage: soffice [options] [documents...]

[... and so on ...]
Comment 3 Andrew Leung 2014-04-16 18:44:26 UTC
The issue is still present after upgrading to 4.2.3.3.

Can anyone else see this?
Comment 4 tommy27 2014-04-16 19:31:06 UTC
revert status to UNCONFIRMED
NEW status can be achieved only after independent confirmation of bug by another user different from the original reporter
Comment 5 Andrew Leung 2014-04-16 20:48:07 UTC
Tommy27, sorry I didn't know that (the NEW status is not documented).

I also testing this on a fresh Ubuntu Server 13.10. Got the exact same problem.

Can you perhaps give me a hand with confirming this bug please?
Comment 6 Robinson Tryon (qubit) 2015-01-07 02:43:29 UTC
TESTING with Ubuntu 14.04 + a 4.4-branch build
(commit: dea4a3b9d7182700abeb4dc756a24a9e8dea8474
 Wed May 21 19:16:44 2014 +0200)

(In reply to Andrew Leung from comment #2)
> Yes, the issue is still present after upgrading to 4.1.4.2. Here's the
> output:
> 
> [root@server ~]# libreoffice -h
> Failed to open display
> LibreOffice 4.1.4.2 0a0440ccc0227ad9829de5f46be37cfb6edcf72
> 
> Usage: soffice [options] [documents...]
> 
> [... and so on ...]

CONFIRMED. Using 'soffice -h' or 'soffice -?' gives an extra 'Failed to open display' line, whereas 'soffice --help' does not give that line. According to the help information output by all three invocations, the three switches should be the same.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.