701d96e34a
- update to 4.0.2.2.1 (SUSE 4.0-rc1, tag suse-4.0-1, based on upstream 4.0.2.2) OBS-URL: https://build.opensuse.org/request/show/171281 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=30
42 lines
1.9 KiB
Diff
42 lines
1.9 KiB
Diff
diff -urN libreoffice-4.0.0.0.beta2.old/desktop/scripts/soffice.sh libreoffice-4.0.0.0.beta2/desktop/scripts/soffice.sh
|
|
--- libreoffice-4.0.0.0.beta2.old/desktop/scripts/soffice.sh 2012-12-19 19:09:46.518989541 +0100
|
|
+++ libreoffice-4.0.0.0.beta2/desktop/scripts/soffice.sh 2012-12-19 19:10:21.810986269 +0100
|
|
@@ -120,6 +120,9 @@
|
|
exit 1;
|
|
fi
|
|
|
|
+PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH}
|
|
+export PYTHONPATH
|
|
+
|
|
case "`uname -s`" in
|
|
NetBSD|OpenBSD|FreeBSD|DragonFly)
|
|
# this is a temporary hack until we can live with the default search paths
|
|
diff -urN libreoffice-4.0.0.0.beta2.old/pyuno/source/module/uno.py libreoffice-4.0.0.0.beta2/pyuno/source/module/uno.py
|
|
--- libreoffice-4.0.0.0.beta2.old/pyuno/source/module/uno.py 2012-12-19 19:09:49.483989266 +0100
|
|
+++ libreoffice-4.0.0.0.beta2/pyuno/source/module/uno.py 2012-12-19 19:10:21.810986269 +0100
|
|
@@ -16,8 +16,12 @@
|
|
# except in compliance with the License. You may obtain a copy of
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
#
|
|
+import os
|
|
import sys
|
|
|
|
+sys.path.append('@INSTALLDIR@/program')
|
|
+if getattr(os.environ, 'URE_BOOTSTRAP', None) is None:
|
|
+ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:@INSTALLDIR@/program/fundamentalrc"
|
|
import pyuno
|
|
|
|
try:
|
|
diff -urN libreoffice-4.0.0.0.beta2.old/scripting/source/pyprov/officehelper.py libreoffice-4.0.0.0.beta2/scripting/source/pyprov/officehelper.py
|
|
--- libreoffice-4.0.0.0.beta2.old/scripting/source/pyprov/officehelper.py 2012-12-19 19:09:46.868989508 +0100
|
|
+++ libreoffice-4.0.0.0.beta2/scripting/source/pyprov/officehelper.py 2012-12-19 19:10:21.810986269 +0100
|
|
@@ -44,7 +44,7 @@
|
|
if "UNO_PATH" in os.environ:
|
|
sOffice = os.environ["UNO_PATH"]
|
|
else:
|
|
- sOffice = "" # lets hope for the best
|
|
+ sOffice = "@INSTALLDIR@/program"
|
|
sOffice = os.path.join(sOffice, "soffice")
|
|
if platform.startswith("win"):
|
|
sOffice += ".exe"
|