summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2017-05-29 18:31:14 +0200
committerjan Iversen <jani@libreoffice.org>2017-05-29 18:38:12 +0200
commit0907b6dc0467f632660c79c035ee7c2fba5346c4 (patch)
treede903233a3954cda7c81ce799f339273146b168e
parente616d08923b158934ba40408a33be326853bfbb8 (diff)
iOS, set user profile path
having NULL as user_profile path does not work, changed call to LOK_init_2 with user profile path Change-Id: Ib7c882eccf228057b5a2d9d21973e8f95d4aee77
-rwxr-xr-xios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm
index 1964de9a7420..e3ba0ac91432 100755
--- a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm
+++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm
@@ -31,8 +31,12 @@ static LibreOfficeKitDocument* document;
// Bridge functions to LibreOfficeKit
extern "C" int BridgeLOkit_Init(const char *path)
{
+ char bufUserPath[200];
+ strcpy(bufUserPath, path);
+ strcpy(bufUserPath + strlen(path), "/user");
+
// Initialize LibreOfficeKit
- kit = lok_init(path);
+ kit = lok_init_2(path, bufUserPath);
udata_setCommonData(NULL, NULL);
ucnv_open("iso-8859-3", NULL);