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+.)
This commit is contained in:
Tor Lillqvist 2018-10-26 10:22:33 +03:00
parent 5167cf9f58
commit f7ebab8902

View file

@ -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