gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] GNUmed Live CD supports OpenOffice and Latex


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] GNUmed Live CD supports OpenOffice and Latex
Date: Thu, 29 Apr 2010 14:34:22 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hello Petr,

thanks for your suggestion.

> > I maintain the OOo packages for openSUSE and have another suggestion how to
> > find the missing uno.py and unohelper.py. It should actually fix the
> > problem also for other distros.

...

> > I think that the official cross-platform way to find the OOo uno components
> > is the following:
> > 
> >     + find the OOo installation via the /usr/bin/soffice symlink, see
> >           the section "Finding a UNO installation" at
> > http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html
> > 
> >     + set the PYTHONPATH, JAVAPATH. LD_LIBRARY_PATH accordingly
> > 
> > For example, I use the following code in the ooconvert script. It uses the
> > python UNO, so we need to set the PYTHONPATH:
> > 
> > # detect the OOo installation
> > ooo_home=
> > soffice=`which soffice 2>/dev/null`
> > if test -L $soffice ; then
> >     soffice_path=`readlink $soffice`
> >     ooo_home=`dirname $soffice_path`/..
> > fi
> > 
> > # try some fallbacks
> > if test -z "$ooo_home" ; then
> >     for dir in /usr/lib64/ooo3 \
> >                /usr/lib/ooo3 ; do
> >         test -f "$dir/program/soffice" && ooo_home="$dir" && continue
> >     done
> > fi
> > 
> > if test -z "$ooo_home" ; then
> >     echo "Error: Unable to find OpenOffice.org instalation"
> >     exit 1;
> > fi
> > 
> > export PYTHONPATH="$ooo_home/basis-link/program"

Based on this GNUmed is now first trying to simply import
uno.py and if that fails it falls back to searching for UNO
with the method outlined above. This will give preference to
platforms (like Debian) that go to the trouble of actually
synchronizing OOo and UNO with the system-wide Python(s) but
then falls back to the x-platform method if other platforms
don't do this.

We are still having sporadic connection failure problems
with the OOo server. Do you happen to have any advice on
that ?

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]