From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-109053-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Ns9QC-0005KE-Jk
	for garchives@archives.gentoo.org; Thu, 18 Mar 2010 06:41:32 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 119BFE0593;
	Thu, 18 Mar 2010 06:40:28 +0000 (UTC)
Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227])
	by pigeon.gentoo.org (Postfix) with ESMTP id B842EE039A
	for <gentoo-user@lists.gentoo.org>; Thu, 18 Mar 2010 06:40:27 +0000 (UTC)
Received: by bwz27 with SMTP id 27so1785730bwz.37
        for <gentoo-user@lists.gentoo.org>; Wed, 17 Mar 2010 23:40:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:reply-to:to:subject:date
         :user-agent:references:in-reply-to:cc:mime-version:content-type
         :content-transfer-encoding:message-id;
        bh=gpZHjlif6hUOJTOCI55kfokHv/LI+vwG4uyJ5xHPdeU=;
        b=O8AagXbLNfXqTqZZvd0TtnV9WvJaFTUZ4L6J2Ha8MHZBColMxzMSVUGqRLMRnS6DzD
         KS3LuRG+M8tbpJEQwIFWW8BCUHPC0WwLwf8WiciDw2PrRtMa+ZZ84OC74IpAmNDq+2FX
         4/vEorSspd6+9w1H6rRfmgxLK5ocr7pFN6AQA=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:reply-to:to:subject:date:user-agent:references:in-reply-to:cc
         :mime-version:content-type:content-transfer-encoding:message-id;
        b=GGtQy40UdKZxlDrIeqbQIFUccKEELpPeosjxGNFkCRDrRbZeWx+ztKYA8iTxSbssm5
         +J21LywA3NTJc1DZpDRyfu0CtmiDlAZpvx49BJP7XopUJTNd4csCDqHIOnGRq7CMBvlX
         w0ZHPKjxn36UwfMdWxmNtDFy5WSn7QUJ5Hu0U=
Received: by 10.204.8.5 with SMTP id f5mr1969016bkf.59.1268894426972;
        Wed, 17 Mar 2010 23:40:26 -0700 (PDT)
Received: from  (230.3.169.217.in-addr.arpa [217.169.3.230])
        by mx.google.com with ESMTPS id a11sm34130989bkc.15.2010.03.17.23.40.25
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Wed, 17 Mar 2010 23:40:26 -0700 (PDT)
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Problem with script calling OOCalc on amd64
Date: Thu, 18 Mar 2010 06:40:21 +0000
User-Agent: KMail/1.12.4 (Linux/2.6.31-gentoo-r10; KDE/4.3.5; x86_64; ; )
References: <201003152342.12044.michaelkintzios@gmail.com> <4BA09DA5.308@oversi.com> <201003172257.51111.michaelkintzios@gmail.com>
In-Reply-To: <201003172257.51111.michaelkintzios@gmail.com>
Cc: Jack <ostroffjh@sbcglobal.net>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart2266609.QybhgvoTM5";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201003180640.32647.michaelkintzios@gmail.com>
X-Archives-Salt: cc75b15e-e611-427a-9654-0d96b2503650
X-Archives-Hash: 14b9ba9ea296613be5b53cb2955626fc

--nextPart2266609.QybhgvoTM5
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

On Wednesday 17 March 2010 22:57:41 you wrote:
> On Wednesday 17 March 2010 09:15:17 Amit Dor-Shifer wrote:
> > ok. I didn't realize that oocalc actually executed in your first attemp=
t.
> > Out of ideas then.
> >
> > FWIW - a few guesses: I'd execute oocalc under strace, and try to find
> > what is killing oocalc (does it decide to exit, or is it sent some
> > signal). If your suspecting xterm to be the culprit (i.e., yr script
> > works-as-expected w/o the xterm wrap) then maybe it'll be worthwhile
> > looking into the X resources yr xterm is reading.

I'm posting this to the list on behalf of Jack, because his posts don't mak=
e=20
it to the list for some reason:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
You didn't see it in the list because it hasn't shown up there yet, =20
despite three tries to post.....

What I mean is that if I type "oocalc somefile" in a term (it doesn't =20
seem to matter xterm, konsole, ...) I almost immediately get the next =20
shell prompt, even before the oocalc (or oodraw or oowrite) window is =20
fully displayed and ready to work.  It does not smell to me like =20
anything to do with the terminal program, or even the shell, although =20
there may well be an environment variable that OO is checking.  =20
oowriter --help (and any variation I have tried) seems to ignore the =20
request for help.  If you look at the ooffice help on command line =20
parameters, there is a note about gentoo having a custom version - but =20
I haven't been able to find anything at the gentoo site either.  I have =20
not yet tried launching from a script in case that behaves any =20
differently.

Note that since the shell has given the next prompt - the terminal will =20
certainly think everything is done, and happily close if the script is =20
finished.  The trick will be to explicitly find a way to check that oo =20
has finished.

If you just launch oo from a command line in a terminal, do you get the =20
next shell prompt immediately, or not until you exit oo?

Jack
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Thanks Jack, this is rather interesting:

On two machines including the amd64 laptop the terminal exits immediately,=
=20
while the OOo is being launched.  Both of these have OOo compiled from=20
source.  The third machine (an old x86 laptop) has the OOo binary installed=
=2E =20
The binary installation behaves as I thought was the norm, i.e. the termina=
l=20
does not exit, but remains open until I close OOo.  So this problem that=20
reported I guess is due to a difference between the two types of OOo, built=
=20
from source or binary.

I looked at the CLI help options by running 'ooffice -help'but I can't see=
=20
anything in there that will change this behaviour on the OOo built from=20
sources.

Any other ideas?
=2D-=20
Regards,
Mick

--nextPart2266609.QybhgvoTM5
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEABECAAYFAkuhyuAACgkQVTDTR3kpaLagDACgs19L3KWCxeYe71jYdDXf7+52
z4sAoIJ5mv9101VM1XT8taQdZBOWIsR5
=JYVX
-----END PGP SIGNATURE-----

--nextPart2266609.QybhgvoTM5--