From f7ebab8902609c4b19e84472c9bd986b16e755db Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 26 Oct 2018 10:22:33 +0300 Subject: [PATCH] Use Poco to convert from pathname to URI (Yesterday I talked about GLib in a commit message, I meant Poco of course, for this source file. It's gtk/mobile.cpp that uses GTK+.) --- kit/Kit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kit/Kit.cpp b/kit/Kit.cpp index e37a88e98..3654865ca 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -2454,7 +2454,8 @@ void lokit_main( #else // MOBILEAPP #ifdef __linux - LibreOfficeKit *kit = lok_init_2(LO_PATH "/program", "file://" LO_PATH); + Poco::URI userInstallationURI("file", LO_PATH); + LibreOfficeKit *kit = lok_init_2(LO_PATH "/program", userInstallationURI.toString().c_str()); #else LibreOfficeKit *kit = lok_init_2(nullptr, nullptr); #endif