From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 13:41:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7724E106566B for ; Thu, 14 Jun 2012 13:41:27 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 50A268FC18 for ; Thu, 14 Jun 2012 13:41:27 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [216.80.73.130]) by paka.cyberleo.net (Postfix) with ESMTPSA id 7B63029B02; Thu, 14 Jun 2012 09:41:21 -0400 (EDT) Message-ID: <4FD9EA00.6000409@cyberleo.net> Date: Thu, 14 Jun 2012 08:41:20 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120513 Thunderbird/10.0.4 MIME-Version: 1.0 To: Wojciech Puchar References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: slowoffice doesn't work X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 13:41:27 -0000 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 Furry Peace! - http://wwww.fur.com/peace/