Lines 1-20
Link Here
|
1 |
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh |
1 |
diff --git a/desktop/scripts/soffice.sh b/desktop/scripts/soffice.sh |
2 |
index a259bf6..672fa23 100755 |
2 |
index f855fe79e8b..5014de5865e 100755 |
3 |
--- a/desktop/scripts/soffice.sh |
3 |
--- a/desktop/scripts/soffice.sh |
4 |
+++ b/desktop/scripts/soffice.sh |
4 |
+++ b/desktop/scripts/soffice.sh |
5 |
@@ -139,6 +139,9 @@ if echo "$checks" | grep -q "cc" ; then |
5 |
@@ -147,6 +147,9 @@ if echo "$checks" | grep -q "cc" ; then |
6 |
exit 1; |
6 |
exit 1; |
7 |
fi |
7 |
fi |
8 |
|
8 |
|
9 |
+PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH} |
9 |
+PYTHONPATH=$sd_prog${PYTHONPATH+:$PYTHONPATH} |
10 |
+export PYTHONPATH |
10 |
+export PYTHONPATH |
11 |
+ |
11 |
+ |
12 |
case "`uname -s`" in |
12 |
case "$(uname -s)" in |
13 |
NetBSD|OpenBSD|DragonFly) |
13 |
NetBSD|OpenBSD|DragonFly) |
14 |
# this is a temporary hack until we can live with the default search paths |
14 |
# this is a temporary hack until we can live with the default search paths |
15 |
|
15 |
diff --git a/pyuno/source/module/uno.py b/pyuno/source/module/uno.py |
16 |
--- a/pyuno/source/module/uno.py 2016-08-07 20:57:51.653712240 -0400 |
16 |
index bccf22d0f8a..01f760ba969 100644 |
17 |
+++ b/pyuno/source/module/uno.py 2016-08-07 20:59:33.958896861 -0400 |
17 |
--- a/pyuno/source/module/uno.py |
|
|
18 |
+++ b/pyuno/source/module/uno.py |
18 |
@@ -16,11 +16,16 @@ |
19 |
@@ -16,11 +16,16 @@ |
19 |
# except in compliance with the License. You may obtain a copy of |
20 |
# except in compliance with the License. You may obtain a copy of |
20 |
# the License at http://www.apache.org/licenses/LICENSE-2.0 . |
21 |
# the License at http://www.apache.org/licenses/LICENSE-2.0 . |
Lines 24-47
index a259bf6..672fa23 100755
Link Here
|
24 |
import sys |
25 |
import sys |
25 |
import traceback |
26 |
import traceback |
26 |
import warnings |
27 |
import warnings |
27 |
|
28 |
|
28 |
+sys.path.append('%eprefix%/usr/%libdir%/libreoffice/program') |
29 |
+sys.path.append('%eprefix%/usr/%libdir%/libreoffice/program') |
29 |
+if getattr(os.environ, 'URE_BOOTSTRAP', None) is None: |
30 |
+if getattr(os.environ, 'URE_BOOTSTRAP', None) is None: |
30 |
+ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:%eprefix%/usr/%libdir%/libreoffice/program/fundamentalrc" |
31 |
+ os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:%eprefix%/usr/%libdir%/libreoffice/program/fundamentalrc" |
31 |
+ |
32 |
+ |
32 |
# since on Windows sal3.dll no longer calls WSAStartup |
33 |
# since on Windows sal3.dll no longer calls WSAStartup |
33 |
import socket |
34 |
import socket |
34 |
|
35 |
|
35 |
diff --git a/pyuno/source/officehelper.py b/pyuno/source/officehelper.py |
36 |
diff --git a/pyuno/source/officehelper.py b/pyuno/source/officehelper.py |
36 |
index 99d3b03..704edab 100755 |
37 |
index 53bd5943e3c..40899c5a426 100644 |
37 |
--- a/pyuno/source/officehelper.py |
38 |
--- a/pyuno/source/officehelper.py |
38 |
+++ b/pyuno/source/officehelper.py |
39 |
+++ b/pyuno/source/officehelper.py |
39 |
@@ -44,7 +44,7 @@ def bootstrap(): |
40 |
@@ -45,7 +45,7 @@ def bootstrap(): |
40 |
if "UNO_PATH" in os.environ: |
41 |
if "UNO_PATH" in os.environ: |
41 |
sOffice = os.environ["UNO_PATH"] |
42 |
sOffice = os.environ["UNO_PATH"] |
42 |
else: |
43 |
else: |
43 |
- sOffice = "" # lets hope for the best |
44 |
- sOffice = "" # lets hope for the best |
44 |
+ sOffice = "%eprefix%/usr/%libdir%/libreoffice/program" |
45 |
+ sOffice = "%eprefix%/usr/%libdir%/libreoffice/program" |
45 |
sOffice = os.path.join(sOffice, "soffice") |
46 |
sOffice = os.path.join(sOffice, "soffice") |
46 |
if platform.startswith("win"): |
47 |
if platform.startswith("win"): |
47 |
sOffice += ".exe" |
48 |
sOffice += ".exe" |