Bug 461984 - [fix available] Cannot use -headless with wrapper scripts, must use .bin executables directly
Summary: [fix available] Cannot use -headless with wrapper scripts, must use .bin exec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openoffice.org
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Caolan McNamara
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-11 18:18 UTC by Orion Poplawski
Modified: 2009-09-02 09:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:08:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1248 0 normal SHIPPED_LIVE openoffice.org bug fix update 2009-09-01 16:29:20 UTC

Description Orion Poplawski 2008-09-11 18:18:49 UTC
Description of problem:

# ooffice -headless
/usr/lib64/openoffice.org/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)
#

Installed Packages
openoffice.org-core.x86_64               1:2.3.0-6.5.2.el5_2    installed
openoffice.org-headless.x86_64           1:2.3.0-6.5.2.el5_2    installed
openoffice.org-writer.x86_64             1:2.3.0-6.5.2.el5_2    installed     

/usr/lib64/openoffice.org/program/soffice.bin -headless 

appears to work....


This (in /usr/lib64/openoffice.org/program/soffice) :

export SAL_USE_VCLPLUGIN=gtk

appears to be the culprit.

[root@alfresco ~]# export SAL_USE_VCLPLUGIN=gtk
[root@alfresco ~]# /usr/lib64/openoffice.org/program/soffice.bin -headless/usr/lib64/openoffice.org/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)

Comment 1 Caolan McNamara 2008-09-11 21:25:29 UTC
True, a bit of a holdover from original RHEL-5.0 where there was no headless and so that particular tweak to prefer "gtk" over "gen" regardless of the desktop environment was perfectly ok. Now that -headless is available, the right fix is the one in devel which uses a different technique to do that (devel patch openoffice.org-2.4.0.rh133741.alwaysgtk.vcl.patch), we should stick that in on a future spin

You've found the workaround for yourself in the meantime :-)

Comment 2 Caolan McNamara 2009-03-12 09:48:59 UTC
checked in for >= 2.3.0-6.11

Comment 6 errata-xmlrpc 2009-09-02 09:08:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1248.html


Note You need to log in before you can comment on or make changes to this bug.