On 06/13/2012 11:49 PM, Wojciech Puchar wrote:
> trying to start openoffice shows:
> 
> [wojtek@wojtek ~]$ openoffice-3.4.0-swriter
> XDM authorization key matches an existing
> client!/usr/local/openoffice-3.4.0/openoffice.org3/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)
> 
> 
> 
> everything else works, doing
> 
> xhost +
> 
> "fixed" the problem. any idea what is wrong.
> deleting .openoffice doesn't change anything

This was a big problem with certain programs that like to re-exec
themselves very quickly upon startup. It affected Firefox[1] and
Thunderbird[2] circa 2003-2004.

The pedantically correct solution is to fix the limitation in the
xsecurity protocol.

The realistically correct solution is to fix the bug in OpenOffice.

The more useful solution is to put something like this in your
.xinitrc/.xsession script:

----8<----
# Tell X to authorize me
xhost +si:localuser:$(id -un) >&/dev/null
----8<----

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=246313
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=224966

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2011-02/msg00086.html
http://lists.debian.org/debian-devel/2000/11/msg01823.html

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<cyber...@cyberleo.net>

Furry Peace! - http://wwww.fur.com/peace/
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to